javascript - Semantic UI Callback for tabs - Stack Overflow

I am referring this document: .html#settingsAs per the document I should be able to perform callbacks

I am referring this document: .html#/settings

As per the document I should be able to perform callbacks on tab visible. But I am missing some points as a result of which my alert is not ing up.

Here is a working code snippet:

My JS

$('.top.menu .item').tab({'onVisible':function(){alert("Called")}});

Appreciate if anybody can help me on this!

I am referring this document: http://semantic-ui./modules/tab.html#/settings

As per the document I should be able to perform callbacks on tab visible. But I am missing some points as a result of which my alert is not ing up.

Here is a working code snippet: http://codepen.io/anon/pen/YXvXKG

My JS

$('.top.menu .item').tab({'onVisible':function(){alert("Called")}});

Appreciate if anybody can help me on this!

Share Improve this question asked Jul 13, 2015 at 12:33 Cyril CherianCyril Cherian 32.3k7 gold badges48 silver badges55 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

You are using an outdated version of Semantic UI. The documentation is for a newer version of Semantic. Consider updating to a 2.x version.

Here is a working JSFiddle with your code: https://jsfiddle/xn7aref8/1/

This works in newer versions of Semantic.

$('.top.menu .item').tab({'onVisible':function(){alert("Called")}});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744755702a4591867.html

相关推荐

  • javascript - Semantic UI Callback for tabs - Stack Overflow

    I am referring this document: .html#settingsAs per the document I should be able to perform callbacks

    19小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信