Is it possible to setContextZone to a tab ID?
i.e.:
my tabbar: …Tab #1…
and then
menu.setContextZone (tab1);
Thanks
Those IDs are not real HTML: IDs, so it will not work, but you can use
menu.setContextZone (tabbar._getTabById(“tab1”)); //be sure to call it after tabbar’s xml loaded
Oops, sorry I meant to ask for “addContextZone” since i am using v2.0 Should it still work? I am getting an error.
Thanks
can be used as
tabbar._getTabById(“tab1”).id=“tab1”;
menu.addContextZone(“tab1”);
Ah, this doesn’t work (at least in IE) because there are more divs within the main tab div, so right-clicking on it will not access the context menu because you are essentially accessing the other divs which are overlapping.
Hope that made sense, if there is any way around this, please let me know! Thanks for the help thus far!
Please, try to use the following approach instead of the provided before (the previous one was for tabs in tabbar’s header):
tabbar._content[“tab1”].id = “tab1”;
menu.addContextZone(“tab1”);