gpt4 book ai didi

Extjs 4 RadioGroup 作为网格列内的小部件?

转载 作者:行者123 更新时间:2023-12-02 20:39:00 26 4
gpt4 key购买 nike

Ext JS 是一个基于 JavaScript 和 Html5 的 Web 应用程序框架。我喜欢将 radiogroup 列添加到 switch、case 语句的类型列表中。即使使用 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 4 RadioGroup 作为网格列内的小部件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23637864/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com