3 Roo.example = Roo.example || {};
5 Roo.example.combobox = new Roo.XComponent({
6 part : ["layout","viewpanel"],
7 order : '001-viewpanel',
10 name : "unnamed module",
17 el : new Roo.bootstrap.Body()
19 this.parent.el.layout = false;
20 this.parent.el.render(document.body);
24 var baseURL = '/web.roojsolutions/index.local.php';
33 placeholder : 'Select a country',
34 displayField : 'title',
35 hiddenName : 'country_id',
38 name : 'country_id_name',
39 triggerAction : 'all',
41 tpl : '<li class="dropdown-item roo-select2-result "><b>{title}</b></li>',
43 style : 'margin-top:20px;',
46 render : function (_self) {
47 _this.normalSel = _self;
50 forceSelection : true,
52 queryParam : 'query[name]',
56 fieldLabel : 'Country Normal',
63 beforeload : function (_self, o) {
64 o.params = o.params || {};
69 sortInfo : { direction : 'ASC', field: 'name' },
73 url : '../bootstrap/data.country.js',
99 placeholder : 'Select a country',
100 displayField : 'title',
101 hiddenName : 'country_id',
104 name : 'country_id_name',
105 triggerAction : 'all',
107 // tpl : '<li class="roo-select2-result"><b>{name}</b></div>',
108 style : 'margin-top:20px;',
112 render : function (_self) {
113 _this.tickableSel = _self;
116 forceSelection : true,
118 queryParam : 'query[title]',
122 fieldLabel : 'Country With Tickable',
127 beforeload : function (_self, o) {
128 o.params = o.params || {};
133 sortInfo : { direction : 'ASC', field: 'name' },
137 url : '../bootstrap/data.country.js',