如何实现Ext的checkBox的横排效果

2014-11-14 21:45:36 · 作者: · 浏览: 21

  主要是需要定义一个xtype 类型为"panel"的载体,很重要!


  {


  columnWidth : .50,


  xtype : "panel",


  layout : "column",// 也可以是table,实现多列布局


  //fieldLabel : '爱好',


  isFormField : true,// 非常重要,否则panel默认不显示fieldLabel


  items : [{


  xtype : "checkbox",


  columnWidth : .33,


  boxLabel : "是否车队",


  name : "isTeam",


  id : "isTeam",


  inputValue : "isTeam"


  }, {


  xtype : "checkbox",


  columnWidth : .34,采集者退散


  // anchor : '97%',


  boxLabel : "是否专线",


  name : "isGreenLine",


  id : "isGreenLine",


  inputValue : "isGreenLine"


  }, {


  xtype : "checkbox",


  columnWidth : .33,


  boxLabel : "是否验证",


  name : "isChecked",


  id : "isChecked",


  inputValue : "isChecked"


  }]


  }


  编辑特别推荐: