How to activate Kendo UI's second tab tab using angularJS

I am basically new to the Angular world. But try to get the phase.

What problem I have now is how to access the kendo tab in my JS file and activate the second tab onClick().

Please note: I do not want to use selectors, i.e. #tabStripID

I'm trying to figure out if there is a way to do this?

pl find plunker http://plnkr.co/edit/6l8R4ggLxOA589IcbRK9?p=preview

Seek help.

Thanks Sammi

+4
source share
1 answer

In your HTML change

<div id="tabstrip" kendo-tab-strip>

with

<div id="tabstrip" kendo-tab-strip="tabstrip">

And change your controller below

  $scope.activateSecondTab = function() {
    $scope.tabstrip.select(1);
  };

I saved a working example in http://embed.plnkr.co/OjKwKRjupDWwNPifqzm2/preview

!

+5

Source: https://habr.com/ru/post/1546704/


All Articles