简体   繁体   English

触发行特定的剑道ui角度2网格鼠标在事件上

[英]Trigger row specific kendo ui angular 2 grid mouse over event

I know that using the template syntax I could use the standard angular 2 (mouseover) event listener to listen for a mouse over event for a specific column. 我知道使用模板语法我可以使用标准的角度2(鼠标悬停)事件监听器来监听特定列的鼠标悬停事件。 I was wondering if there is a way to listen for mouseover events for an entire row and be able to get the index for that row. 我想知道是否有办法监听整行的鼠标悬停事件,并能够获得该行的索引。

I am trying to a achieve an mouse over hover action the triggers on one row at a time, without having to use multiple <template> tags on each column. 我试图在一行中实现鼠标悬停操作触发器,而不必在每列上使用多个<template>标签。

Any help is much appreciated. 任何帮助深表感谢。 If there is a better approach then I am all ears. 如果有更好的方法,那么我全都是耳朵。

It is possible to handle the row mouse events from within the 'consuming' component. 可以从'使用'组件中处理行鼠标事件。 You should check following GH issue for a runnable sample of such approach: https://github.com/telerik/kendo-angular2/issues/21#issuecomment-247941402 您应该检查以下GH问题以获取此类方法的可运行样本: https//github.com/telerik/kendo-angular2/issues/21#issuecomment-247941402

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

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