javascript - Enable/Disable toolbar button based on active display in ExtJS panel -


i have panel docked toolbar , icon inside it. panel has several items (accordion layout). want enable icon selected items. i.e. when valid item active button should become enabled, , disabled if user activates item icon not applicable for.

i tried disabled: function() { code find whether item valid .. }, didnot work.

i researched panel listeners find 1 item change , use button.setdisabled(bool) couldnot find right event use.

how achieve this?

p.s. using extjs 4.1.

when change items in accordion, panel gets activated fire expand event. listen expand event on each panel, call enable/disable on appropriate buttons.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -