try to modify the exist richselect
webix.protoUI({
name: "richselect",
say_setter: function(value) {
webix.message("Hello " + value);
}
}, webix.ui.richselect);
and define ui
// that will display a message "Hello John"
webix.ui({
view: "form",
elements: [{
view: "richselect",
say: "John"
}, {
view: "combo",
say: "John"
}]
});
http://webix.com/snippet/02919e0a
but, if I revert the order of form elments, combo first then richselect, that will not display message
// will not disaply a message
webix.ui({
view: "form",
elements: [ {
view: "combo",
say: "John"
},{
view: "richselect",
say: "John"
}]
});
http://webix.com/snippet/8226cb03
why?