app/assets/javascripts/fastui/app/view/vfield/VSexSelect.js in fastui-0.1.2 vs app/assets/javascripts/fastui/app/view/vfield/VSexSelect.js in fastui-0.1.3

- old
+ new

@@ -1,28 +1,21 @@ Ext.define('FastUI.view.vfield.VSexSelect',{ - extend: 'Ext.form.field.ComboBox', + extend: 'Ext.form.RadioGroup', valueObject: {}, winCtx:{}, winId:0, rest:{}, - valueField:"sex_bool", - displayField:"name", - forceSelection: true, - triggerAction: 'all', - selectOnFocus:true, - queryMode:"local", - hiddenName:this.name, + width:300, initComponent:function(){ this.fieldLabel = this.getFValue('title'); - this.name = this.rest.getTableName() + '[' + this.getFValue('m_property').name + ']'; this.disabled = this.getFValue('readonly'); this.allowBlank = true; - this.store = Ext.create('Ext.data.ArrayStore',{ - fields: ["name","sex_bool"], - data:[['男',true],['女',false]] - }); + this.items = [ + { boxLabel: '男', name: this.rest.getTableName() + '[' + this.getFValue('name') + ']', inputValue: 'true', width:100 }, + { boxLabel: '女', name: this.rest.getTableName() + '[' + this.getFValue('name') + ']', inputValue: 'false', width:100 } + ]; this.callParent(); }, getFValue:function (key) { return this.valueObject[key]; } \ No newline at end of file