#8906 closed bug (notabug)
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" )
Change History (3)
comment:1 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
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; }
comment:3 Changed 10 years ago by
Ok, so write an extension. Not everything belongs in the core of the plugin.
Note: See
TracTickets for help on using
tickets.
No, that's deprecated.