admin管理员组文章数量:1410737
I'm basically new to Angular world. But trying hard to get the phase.
What problem I now have is, how to access kendo tabstrip in my JS file and activate second tab onClick()
.
Please note I do not want to use selectors i.e., #tabStripID
I'm trying to see if there is any way to do it?
pl find the plunker
Looking for the help.
Thanks, Sammi
I'm basically new to Angular world. But trying hard to get the phase.
What problem I now have is, how to access kendo tabstrip in my JS file and activate second tab onClick()
.
Please note I do not want to use selectors i.e., #tabStripID
I'm trying to see if there is any way to do it?
pl find the plunker http://plnkr.co/edit/6l8R4ggLxOA589IcbRK9?p=preview
Looking for the help.
Thanks, Sammi
Share edited May 11, 2015 at 16:34 scniro 17k8 gold badges66 silver badges107 bronze badges asked Jul 1, 2014 at 14:40 SammiSammi 1193 silver badges11 bronze badges1 Answer
Reset to default 5In your HTML change
<div id="tabstrip" kendo-tab-strip>
with
<div id="tabstrip" kendo-tab-strip="tabstrip">
And change your controller as below
$scope.activateSecondTab = function() {
$scope.tabstrip.select(1);
};
I saved a working example at http://embed.plnkr.co/OjKwKRjupDWwNPifqzm2/preview
Enjoy!
本文标签: javascripthow to activate second tab of Kendo UI tabstrip using angularJSStack Overflow
版权声明:本文标题:javascript - how to activate second tab of Kendo UI tabstrip using angularJS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744880983a2630204.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论