i need to include the icon in the header for the datatable for below snippet and the icon should have the tooltip
snippet:https://snippet.webix.com/ulclrbk1
Hi Rajkumar,
Please refer below code:
https://snippet.webix.com/rg8v1b4n
Is this is what you are expecting?
(function(){
const _tooltip = webix.ui({view:"tooltip",dx:20,dy:0});
let _moveTimeout;
webix.event(document, "mousemove", e => {
clearTimeout(_moveTimeout);
_tooltip.hide();
if(e.target.title || e.target.$title) {
const data = {value:e.target.title || e.target.$title}, pos = webix.html.pos(e);
if(e.target.title){
e.target.$title = e.target.title;
e.target.removeAttribute("title");//to prevent native title behaviour
}
_tooltip.define({template:"{obj.value}", css:""})
_moveTimeout = webix.delay(_tooltip.show, _tooltip, [data, pos], webix.TooltipControl.delay);
}
}, {capture: true});
}());
@integral In given snippet i could not find any icon in the header section of the datatable (i need a default icon to be displayed in the place of # with tooltip)