EasyUI Forum
November 05, 2025, 09:14:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Get tab by option value  (Read 7678 times)
snowsnow
Newbie
*
Posts: 6


View Profile
« on: November 29, 2014, 03:33:52 AM »

Hi
When I create a tab, I add a special option
Code:
var opt = { title: "...", mySpecialOption : 9 };
$("#tt").tabs('add', opt);

How do I obtain a reference to a tab by 'mySpecialOption'? I. E.
Code:
var tab = getTab(9); /* Should return a reference to the tab created above */


Thanks.
« Last Edit: November 29, 2014, 03:36:24 AM by snowsnow » Logged
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« Reply #1 on: November 29, 2014, 12:21:31 PM »

It could be something like:

Code:
var tab_9 = $("#tt").tabs('getTab', 9)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!