Quantcast
Channel: CQ 5
Viewing all articles
Browse latest Browse all 35

[DIALOG] Active a tab of dialog

$
0
0

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.

Viewing all articles
Browse latest Browse all 35

Trending Articles