extcheckbox横排:如何实现Ext的checkBox的横排效果?

     主要是需要定义个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"
  }]
  }



Tags:  ext.form.checkbox exttreecheckbox extcheckbox extcheckbox横排

延伸阅读

最新评论

发表评论