linkInput

links a suggest list to an input field

void linkInput(HTMLElement input);
inputHTMLElementinput object

Example

var year_suggest = webix.ui({
                view: "suggest",
                data:years,
                width: 70, yCount:8
            });
 
var grid =  webix.ui({
    view:"datatable",
    ..//congig
});
 
grida.attachEvent("onAfterEditStart", function(object) {
        if (object.column == "year") { // links suggest to the "year" column
            var editor = this.getEditor(object);
            year_suggest.linkInput(editor.type.getInputNode());
        }
});

Related samples

See also
Back to top