Search and Top Navigation
#8906 closed bug (notabug)
Opened December 13, 2012 11:24AM UTC
Closed December 13, 2012 02:01PM UTC
Last modified December 13, 2012 02:15PM UTC
activate tab by id selector
Reported by: | dIsoVi | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.0 |
Component: | ui.tabs | Version: | 1.9.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In deprecated select method you can select tab by id selector:
$( "#tabs" ).tabs( "select", "#first-tab" );
you can't do it using active option now.
Such arguments are expected to work:
$( "#tabs" ).tabs( "option", "active", "#first-tab" )
Attachments (0)
Change History (3)
Changed December 13, 2012 02:01PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
Changed December 13, 2012 02:13PM UTC by comment:2
but what is the reason for that? As for me it decreases usability. Now I have to rewrite all the code where I've used this feature. And in jqueryUI sources it is very easy to implement for example like this:
_setOption: function( key, value ) { if ( key === "active" ) { // _activate() will handle invalid values and update this.options this._activate( this._getIndex(value) ); return; }
Changed December 13, 2012 02:15PM UTC by comment:3
Ok, so write an extension. Not everything belongs in the core of the plugin.
No, that's deprecated.