vendredi 2 août 2019

Extjs Hide/Show 'checkbox model' column

I created a checkbox column with:

selModel: {
        selType: 'checkboxmodel',
        checkOnly: false,
        showHeaderCheckbox: true,
        injectCheckbox:'last',
},

listeners: {
        selectionchange: 'onSelectionChange'
},

And it works goods for the functionality I need.

My only problem is that I would like that this column would be not always show but to be show/hide when the user select it in the menu where the are the other columns (Name, Identifier, etc. ) in the picture below:

enter image description here

How can I implement this?

I also check that exist xtype: 'checkcolumn' but I saw that with it is not easy as in checkboxmodel implement operations like select all items ecc.




Aucun commentaire:

Enregistrer un commentaire