简体   繁体   English

如何为Webix数据表的特定列禁用工具提示

[英]How to disable tooltip for a specific column of a webix datatable

I have a configured tooltip as 'true' in my datatable settings which is working as expected. 我在数据表设置中将配置的工具提示设置为“ true”,可以按预期工作。
However, I want to deactivate the tooltip for a specific column of the datatable. 但是,我想停用数据表中特定列的工具提示。 Lets assume columns which are having a button in its cell, the tooltip should not show up. 让我们假设在其单元格中具有按钮的列中,不应显示工具提示。 Using onMouseMove and checking the class for the button, later on, I am trying to disable the tooltip as below: 使用onMouseMove并检查按钮的类,稍后,我尝试禁用工具提示,如下所示:

But it is not taking effect. 但这没有生效。

on:{
    onMouseMove:function(id, e, node) {
    //alert("this is mouse move = "+e.srcElement.className);
    var cls = e.srcElement.className;
    if(cls == 'btnclass') {
        $$('mytable').config.tooltip = false;
        //alert("disabled");
    }
    }
}

The entire snippet is here https://webix.com/snippet/79d05d47 整个代码段在这里https://webix.com/snippet/79d05d47
Can anybody help me make it work ? 有人可以帮助我使它正常工作吗?

There is no any direct option to disable the tooltip in webix datatable. 没有任何直接选项可以禁用webix数据表中的工具提示。 While specifying the configuration of datatable, if you set property tooltip=true , it automatically applied to all the columns. 在指定数据表的配置时,如果设置属性tooltip=true ,它将自动应用于所有列。 But if you want it to disable for the particular column, you can specify the template for that column and in the template, you can remove the title attribute. 但是,如果要禁用特定列,则可以为该列指定模板,然后在模板中删除title属性。

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

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