editors.richselect

webix.editors.richselect

webix.editors.richselect helper.

Please look into the linked official documentation.

References

helpers
extend().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
webix.editors.richselect = webix.extend({
    focus:function(){},
    getValue:function(){
        return this.getPopup().getValue();
    },
    setValue:function(value){
        var suggest =  this.config.collection || this.config.options;
        var list = this.getInputNode();
        if (suggest)
            this.getPopup().getList().data.importData(suggest);

        this.getPopup().show(this.node);
        this.getPopup().setValue(value);
    },
    getInputNode:function(){
        return this.getPopup().getList();
    },
    popupInit:function(popup){
        popup.linkInput(document.body);
    },
    popupType:"richselect"
}, webix.editors.popup);