Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


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 Scott González

Resolution: notabug
Status: newclosed

No, that's deprecated.

comment:2 Changed 10 years ago by dIsoVi

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) );

comment:3 Changed 10 years ago by Scott González

Ok, so write an extension. Not everything belongs in the core of the plugin.

Note: See TracTickets for help on using tickets.