I have been writing a plugin as part of integration with our CMS. I've managed to finded out how to most things via the documentation and examples. But the last thing I'm stuck on setting the initial tab setting, when loading the dialog.
The dialog has three tabs, I've been able to setup everything, but I need to be able to change the current active tab when I load up the dialog. Dependant on what the user has selected.
Your help is appreciated.
The dialog has three tabs, I've been able to setup everything, but I need to be able to change the current active tab when I load up the dialog. Dependant on what the user has selected.
Your help is appreciated.
RE: Tabbed Dialog Plugin
window.parent.AddTab(tabCode, tabTitle);
...creates a tab.
For tab selection to work you must have the following function in your plugin's JS file...
function OnDialogTabChange(tabCode)
{
ShowE('divTab1', (tabCode == 'Tab1'));
ShowE('divTab2', (tabCode == 'Tab2'));
.
.
.
}
...To change which tab is active simply call the function with the appropriate tab code.
Re: Tabbed Dialog Plugin