Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#5805 closed enhancement (worksforme)

Custom id for remote tab

Reported by: ludoo Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.2
Keywords: hash anchor id Cc:
Blocked by: Blocking:

Description

I suggest to add capability to add a custom id for remote tab as well as local content.

So by changing line 135, we can add extra anchor on link.

//var id = self._tabId(a);
var id = href.split('#')[1] || self._tabId(a);

Instead getting an always numbered id such ui-tabs-1, i get myCustomId

<li><a href="ajax/content1.html#myCustomId">Tab 1</a></li>

Change History (4)

comment:1 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

You can already do this with the title attribute.

comment:2 Changed 9 years ago by Backpacker

What if you still want to use the title tag for a nice title, that gets displayed when you hover over the link but use a custom (ugly looking) anchor with one or multiple id's in it? Is there another way of doing a custom anchor for a remote tab?

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

This is being changed in 1.9, see http://forum.jquery.com/topic/tabs-api-redesign

comment:4 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.