How to activate/inactivate a tab on a dialog base on an event of item?
Resolution:
In the sample code, we add a listener to listen ‘activate’ event for dialog.
<listeners jcr:primaryType="nt:unstructured" activate="function(dialog) { dialog.findByType('tabpanel')[0].setActiveTab(2); } " /> |
* param of setActiveTab method is the index of tab. 0 is the first tab, 1 is the second, so forth.