dojo - Disable a tab in dijit.layout.tabcontainer -
alert(dijit.byid("cpane1availablecontentpane").get("disabled")); dijit.byid("cpane1availablecontentpane").setattribute("disabled",true); alert(dijit.byid("cpane1availablecontentpane").get("disabled")); - i have programmatically created dijit.layout.tabcontainer tabs.
- those tabs have programmatically created dijit.contentpane.
- i want disable particular tab.
- i tried above code. not working.
- in first alert, false , in second true. hope value getting set. no changes in ui.
tabcontainer id: dijit.byid('tab1');
is above way disable, or other method there?
--> pane.set("disabled", true);
==> registry.byid('tab1').set('disabled', true);
try dijit.byid("cpane1availablecontentpane").set('disabled',true);
Comments
Post a Comment