Ext JS是基于JavaScript和Html5的Web应用程序框架。
我喜欢将radiogroup列添加到switch,case statment的类型列表中。
即使使用Alexander.Berg的组件对我也没有用
column : function(type , attribs){
var me = this;
var xtype = 'textfield';
var attribs = attribs || {};
var def = {}
switch(type){
case 'id':
xtype = 'numberfield';
def.sortable = false;
def.hidden = true ;
def.hideable = false;
def.allowBlank = true;
break;
case 'readonly':
def.editor = false;
def.flex = 1;
def.sortable = true;
def.allowBlank = true;
def.width = 75;
def.field = {
typeAhead : true,
triggerAction : 'all',
selectOnTab : true,
lazyRender : true,
listClass : 'x-combo-list-small'
}
break;
...
build Columns : function(fields){
var me = this ;
var counter = fields.length();
//zero is false
Ext.each(fields ,function(field){
console.log(field);
fields[counter++] = me.column(field.type||'text' ,field);
});
//console.log(fields);
return fields
}
最佳答案
您可以使用UX组件列
http://skirtlesden.com/ux/component-column
关于extjs - Extjs 4 RadioGroup作为窗口小部件的“内部网格”列?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23637864/