Check documentation for the latest version 6.0 of dhtmlxSuite onInfo DHTMLX Docs

onInfo

fires when the user clicks the Info icon

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

Parameters

namestringitem name
eEventevent object

Example

myForm.attachEvent("onInfo", function(name, e){
 
    // get clicked DOM element (i.e. <span>?</span>)
    var t = e.target||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
    myPopup.show(x,y,w,h);
 
});

Details

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


Change log

2nd param 'e' added in 4.3

Back to top