Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#5997 closed enhancement (wontfix)

It should be possible to use tabs without the fragment identifiers

Reported by: rs Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.4
Keywords: Cc:
Blocked by: Blocking:

Description

If I add all tabs programmatically, jQuery UI could store the association tab-to-content in a data()-call or similar instead of relying on string-matching of the href to the id-attribute.

IDs should only be assigned once in the entire DOM structure and if you’re trying to create a rich UI in JavaScript, you might not have control over each and every tabs widget on the page so you try to avoid id attributes as best as possible. It would be nice if jQuery UI would let you.

Change History (3)

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

Resolution: wontfix
Status: newclosed
Type: bugenhancement

Creating unique ids is pretty simple and adding this support would complicate the API.

comment:2 Changed 13 years ago by rs

Littering single-purpose generated unique IDs all over a document is not really my idea of a clean structure. I’d think the logical approach to this would be the other way around: tightly bind the tab and its panel together using data() and only use the fragment identifier in the beginning when creating the tabs from existing nodes.

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.