CiCeng
Google站内搜索
站内栏目
首页    Ext(Yahoo YUI)框架   Ext.form.ComboBox 基本定义
Ext.form.ComboBox 基本定义
【作者:CCScript整理 阅读:1573 最后更新:08-10-28】
var articlekind = new Ext.form.ComboBox({
  fieldLabel :
'部门',  //UI标签名称
  name : 'identity',   //作为form提交时传送的参数
  allowBlank : false,  //是否允许为空
  mode : 'local',      //数据模式,local为本地模式
  readOnly : true,     //是否只读
  triggerAction : 'all',  //显示所有下列数.必须指定为'all'
  anchor : '90%',
  emptyText:
'请选择...',
  store :
new Ext.data.SimpleStore({  //填充的数据
   fields : ['value', 'text'],
   data : [[
'车身部门', '车身部门'], ['车型部门', '车型部门'], ['动力部门', '动力部门'],
     [
'底盘部门', '底盘部门']]
  }
),
  valueField :
'value',  //传送的值
  displayField : 'text'  //UI列表显示的文本
}
);

联系我们   |  法律声明   |  关于   |  合作伙伴
© 2008 CiCeng.CCScript 版权所有 保留所有权利
沪ICP备08115912号