It would be nice if DHTMLX Touch had the option to activate a clear button to remove any input that was keyed into the text component.
-Thanks, Kris
It would be nice if DHTMLX Touch had the option to activate a clear button to remove any input that was keyed into the text component.
-Thanks, Kris
The button can be added using the following approach:
{ view:“text”, iconWidth: 20, iconCss: “close_button”, id:‘text1’,…},
[code]{ view:“text”, iconWidth: 20, iconCss: “close_button”, id:‘text1’, click: “checkCloseClick”},
…
function checkCloseClick(id,e){
var isCloseButton = ((e.target||e.srcElement).className == “close_button”)
if(isCloseButton)
$$(“text1”).setValue("");
}[/code]