Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#3659 closed enhancement (wontfix)

ui.tabs - add a spinner_placeholder option

Reported by: J5 Owned by: klaus.hartl
Priority: minor Milestone:
Component: ui.tabs Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:

Description

Here is a patch for adding a spinner_placeholder option. The spinner_placeholder option can be a string or a jquery object.

If it is a jquery object that object is replaced by the spinner during loads. This allows the developer to place the spinner in a stationary location (sort of how the browser spinner works).

If the spinner_placeholder option is a string it gets evaluated as a child of the tab list item.

I need this functionality but if you think it can be done differently I'm willing to rewrite.

Example:

<div>

<ul>

<li><a href="http://jquery.com/" title="home"><span class="spinner_placeholder"/>jQuery Home</a></li> <li><a href="http://docs.jquery.com/About" title="about"><span class="spinner_placeholder"/>Jquery About</a></li>

</ul>

</div>

<script type="text/javascript">

fcom_sub_tabs = $("#content-nav > ul").tabs({

spinner: $('<img/>').addClass('tab_spinner').attr(

{

src:'images/spinner-graphics.gif', height: '16', width: '16',

}),

spinner_placeholder: '.spinner_placeholder'

});

</script>

Attachments (1)

ui.tab-add-placeholder-spinners.patch (1.5 KB) - added by J5 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by J5

comment:1 Changed 11 years ago by klaus.hartl

Owner: set to klaus.hartl
Status: newassigned

comment:2 Changed 11 years ago by klaus.hartl

Resolution: wontfix
Status: assignedclosed

No need for an option here.

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.