Check documentation for the latest version of dhtmlxSuite onInfo DHTMLX Docs


fires when the user clicks the Info icon

void onInfo(string name,Event e){ ... };


namestringitem name
eEventevent object


myForm.attachEvent("onInfo", function(name, e){
    // get clicked DOM element (i.e. <span>?</span>)
    var t =||e.srcElement;
    // detect coords
    var x = window.dhx.absLeft(t);
    var y = window.dhx.absTop(t);
    var w = t.offsetWidth;
    var h = t.offsetHeight;
    // show popup next to ? icon,y,w,h);


to add the icon, set the info attribute (if available) to true.

Change log

2nd param 'e' added in 4.3

Back to top