简体   繁体   English

Kendo UI for Angular2-Scrollview ItemChanged

[英]Kendo UI for Angular2 - Scrollview ItemChanged

How do I make use of the ItemChanged Event to get the index of the current item? 如何利用ItemChanged事件获取当前项目的索引? Please help thanks. 请帮忙谢谢。

What about: 关于什么:

(itemChanged)="itemChanged($event)"

and then 接着

public itemChanged(e) {
  console.log(e.index);
}

Here is a plunkr - http://plnkr.co/edit/EdDp5vF4dLTYjt6EZWDu?p=preview 这里是一个plunkr - http://plnkr.co/edit/EdDp5vF4dLTYjt6EZWDu?p=preview

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

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