简体   繁体   English

获取jquery ui选项卡的属性

[英]get the properties of jquery ui tabs

just one quick question about the select event of the jQuery UI Tabs 关于jQuery UI Tabs select事件的一个简单问题

$( ".selector" ).tabs({
   select: function(event, ui) { ... }
});

I know I can get the index of the selected tab inside the callback function by doing: 我知道我可以通过执行以下操作来获取回调函数中所选标签的索引:

ui.index

But my question is, how do I get all the properties that are available to me from the ui object? 但是我的问题是,如何从ui对象中获得所有可用的属性? ( ui.index for example is just one of them). (例如ui.index只是其中之一)。 What are the other ui.SOMETHING that are available to me for use? 还有什么我可以使用的ui.SOMETHING (apart from index , what else can SOMETHING be replaced by?) (除了index ,还有什么可以SOMETHING被替换?)

Anybody please let me know 有人请让我知道

Thank you 谢谢

Easy to find out yourself by logging "ui" to console: 通过将“ ui”登录到控制台,很容易发现自己:

$( ".selector" ).tabs({
    select: function(event, ui) {
      console.dir( ui);
    }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM