links a suggest list to an input field
input | HTMLElement | input object |
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());
}
});