javascript - How can I forbit editing webix select fields using view: "combo"? -


this piece of js file

how can forbit editing webix select fields using view: "combo"? using view: "select" not option.

rows: [          {                     borderless: true,                     css: "font_bold",                     height: 35,                     template: displaycontent                   },                   {                     view: "combo",                     id: "myid",                     tooltip: somevalue,                     value: someid,                     options: contactlistoptions,                     on: {                      ------                   } 

a similar issue mentioned @ their forum

i've tested bit - seems still works same way, following workaround relevant:

/* if readonly set true */   suggest:{             on:{         onbeforeshow:function(){         var parent = $$(this.config.master);         if (parent.config.readonly)           return false;        }     },         body:{        on:{         onbeforeselect:function(){           var parent = $$(this.getparentview().config.master);                     if (parent.config.readonly)                            return false;         }       }     },     data:combo_data,   } 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -