sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
93 stars 58 forks source link

Disabling and undisabling tabs in a JQuery TabbedPanel #279

Closed zenith77 closed 7 years ago

zenith77 commented 7 years ago

Pretty much as it says on the description.

I've tried using the Options object to set "disabled" but nothing works, oddly. I'd also like to use Javascript to un-disabled them, too. Hopefully that should be easy to work out, once I work out how to disable tabs, first!

I am looking to disable multiple tabs in the first instance.

sebfz1 commented 7 years ago

The disabled option works for me (to disable in the first instance):

new TabbedPanel("tabs", model, new Options("disabled", "[1, 2]"))

I've added enable and disable ajax methods:

tabPanel.enable(target);     // enable all tabs
tabPanel.enable(1, target);  // enable one tab
tabPanel.disable(target);    // disable all tabs
tabPanel.disable(1, target); // disable one tab
sebfz1 commented 7 years ago

Snapshots are on their ways:

zenith77 commented 7 years ago

Amazing! Thanks dude, once again! :D