fires when the user clicks the Info icon
name | string | item name |
e | Event | event object |
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);
});
to add the icon, set the info attribute (if available) to true.
2nd param 'e' added in 4.3
Back to top