Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#4607 closed enhancement (wontfix)

Fixed panelId for ui.tabs

Reported by: makeable Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

It is beneficial to allow a fixed target panel for tabs when loading content via ajax. The attached patched utilises an additional option (panelId) to use as the target panel.

Attachments (1)

ui-tabs-panelId.diff (720 bytes) - added by makeable 14 years ago.
fixed panelId option

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by makeable

Attachment: ui-tabs-panelId.diff added

fixed panelId option

comment:1 Changed 14 years ago by makeable

Usage:

$(function() {

$("#tabs").tabs({panelId: "panel_id"});

});

comment:2 Changed 14 years ago by Jörn Zaefferer

Milestone: TBD1.8

Dunno what problem this is supposed to solve, a better description would help.

comment:3 Changed 14 years ago by makeable

This will solve the case of having a dedicated panel that is in away from the tabs, and retain the usage of distinct title attributes:

<div id="tabs">
  <ul>
    <li><a href="link1.html" title="Go to Link 1"><span>Link 1</span></a></li>
    <li><a href="link2.html" title="Go to Link 2"><span>Link 2</span></a></li>
    <li><a href="link3.html" title="Go to Link 3"><span>Link 3</span></a></li>
    <li><a href="link4.html" title="Go to Link 4"><span>Link 4</span></a></li>
  </ul>
</div>

<div id="panel">Content should be loaded here.</div>

<script type="text/javascript">
$(function() {

$("#tabs").tabs({panelId: "panel"});

});
</script>

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

Resolution: wontfix
Status: newclosed

This feature doesn't make sense in the context of tabs.

comment:5 in reply to:  4 Changed 12 years ago by zomar76

Replying to scott.gonzalez:

This feature doesn't make sense in the context of tabs.

Hello

In AJAX context it has sense.

This would solve problem of displaying tip text from title attr.

I do not want to use title attr at all.

If i use title attr user will see e.g.: 'panel_123_id' when he mouseover over tab with text e.g: "List of ...."

comment:6 Changed 12 years ago by Scott González

As of 1.9, tabs no longer uses the title attribute.

Note: See TracTickets for help on using tickets.