DHTMLX dropdown box option too long, resulting in incomplete display, so in the drop-down box added the title
Here's how:
Dhtmlxcombo.prototype.modes.checkbox.render=function (c, E) {
if (this.image_css_regexp = = null) {
This.image_css_regexp = new RegExp (This.image_css.replace ("#state #", "\\d*")
}
c._conf = {
Value:e.value,
CSS: "",
CHECKED:WINDOW.DHX4.S2B (e.checked)
};
C.classname = "Dhxcombo_option";
var a = {};
if (E.multicol = = True) {
E.text.checkbox = "<div class=" + String (THIS.IMAGE_CSS). replace ("#state #", (c._conf.checked? "1": "0") + "></div> ";
A.checkbox = true;
c.innerhtml = "<div class=" + dhtmlXCombo.prototype.modes.option.option_css + "' title= '" + e.text + "' ></div> ;"
} else {
c.innerhtml = "<div class=" + String (THIS.IMAGE_CSS). replace ("#state #", (c._conf.checked? "1": "0") + "' ></div><div class= '" + this.option_css + "' title= '" + e.text + "> </div>"
}
if (e.css! = null) {
C.lastchild.style.csstext + = E.css;
C._conf.css = E.css
}
This.settext (c, E.text, a);
return this
};
Dhtmlxcombo.prototype.modes.option.render=function (A, c) {
a._conf = {
Value:c.value,
CSS: ""
};
A.classname = "Dhxcombo_option";
a.innerhtml = "<div class=" + this.option_css + "' title= '" + c.text + "> </div>";
if (c.css! = null) {
A.lastchild.style.csstext = C.css;
A._conf.css = C.css
}
This.settext (A, c.text);
return this
}
The compiled HTML code adds the title attribute to the DIV added
a.innerhtml = "<div class=" + this.option_css + "' title= '" + c.text + "> </div>";
DHTMLX Modifying methods plus parameters