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?

disable dojo tab

--> pane.set("disabled", true);

==> registry.byid('tab1').set('disabled', true);

try dijit.byid("cpane1availablecontentpane").set('disabled',true);


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -