[jQuery-UI-dev] what does .tabs("disable") do?

34 views
Skip to first unread message

Cloudream

unread,
Mar 21, 2009, 10:55:20 AM3/21/09
to jquery...@googlegroups.com
What does .tabs("disable") do?

When you switch tabs, the hash in location bar does change?

Best regards,
Chi Cheng
--

Scott González

unread,
Mar 21, 2009, 11:03:31 AM3/21/09
to jquery...@googlegroups.com
.tabs('disable') disabled the entire tab set (you can no longer click on any tab).

.tabs('disable', tabId) disables a specific tab within the set (you can no longer click on that specific tab).

The method definitions should probably be next to each other in the docs instead of separated by several other methods.

Cloudream

unread,
Mar 21, 2009, 11:09:30 AM3/21/09
to jquery...@googlegroups.com
2009/3/21 Scott González <scott.g...@gmail.com>

.tabs('disable') disabled the entire tab set (you can no longer click on any tab).
 
It doesn't works, you can still click on tabs.

I've tested it through firebug.  .tabs("destroy") works well.

A bug?

Scott González

unread,
Mar 21, 2009, 11:11:30 AM3/21/09
to jquery...@googlegroups.com
Yeah, that's a bug, go ahead and file it.

Thanks.

Scott González

unread,
Mar 21, 2009, 11:12:11 AM3/21/09
to jquery...@googlegroups.com
2009/3/21 Scott González <scott.g...@gmail.com>

Yeah, that's a bug, go ahead and file it.

When you file the bug, add a note to make sure .tabs('enable') works as well.

Cloudream

unread,
Mar 21, 2009, 5:12:15 PM3/21/09
to jquery...@googlegroups.com
http://dev.jqueryui.com/ticket/4386

Seems it is a little complex, tabs use options.disabled to store an array represents which tab is disabled.
Other plugins and $.widget uses options.disabled to store the status of the instance.

2009/3/21 Scott González <scott.g...@gmail.com>
Reply all
Reply to author
Forward
0 new messages