Question
I am using jeasy ui Tabs. Link To Jeasy Ui Tabs
Is there a way to disable all tabs at once. ??
Currently i am able to disable one by one only.
$('#tab').tabs('disableTab', 1);
$('#tab').tabs('disableTab', 2);
Answer
once soulation :
$('#tab').tabs('tabs').forEach(function(v,i){
var opts=$('#tab').tabs("getTab",i).panel("options");
opts.tab.addClass("tabs-disabled");
opts.disabled=true;
});
other soulation :
$('#tab').tabs('tabs').forEach(function(v,i){
var opts=$('#tab').tabs("disableTab",i);
});
No comments:
Post a Comment