Skip to main content

Search and Top Navigation

#4607 closed enhancement (wontfix)

Opened June 15, 2009 04:23PM UTC

Closed October 22, 2010 08:46PM UTC

Last modified November 18, 2011 03:52PM UTC

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)
Change History (6)

Changed June 15, 2009 04:32PM UTC by makeable comment:1

Usage:

$(function() {

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

});

Changed June 16, 2009 10:49AM UTC by jzaefferer comment:2

milestone: TBD1.8

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

Changed June 16, 2009 04:23PM UTC by makeable comment:3

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>

Changed October 22, 2010 08:46PM UTC by scottgonzalez comment:4

resolution: → wontfix
status: newclosed

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

Changed November 18, 2011 09:35AM UTC by zomar76 comment:5

Replying to [comment:4 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 ...."

Changed November 18, 2011 03:52PM UTC by scottgonzalez comment:6

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