大佬教程收集整理的这篇文章主要介绍了表单 – ExtJS – 在FormPanel列布局中排列表单元素,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
searchForm = new Ext.FormPanel({ frame: true,title: 'Search Criteria',labelAlign: 'left',labelStyle: 'font-weight:bold;',labelWidth: 85,width: 900,items: [{ layout: 'column',items: [{ // column #1 columnWidth: .33,layout: 'form',items: [{ xtype: 'textfield',fieldLabel: 'BAnner ID',name: 'bAnnerID',anchor: '95%',},new Ext.form.ComboBox({ fieldLabel: 'Advertiser',typeAhead: true,triggerAction: 'all',mode: 'local',emptyText: 'Advertiser',store: advertiserList,valueField: 'id',displayField: 'name' })] // close items for first column },{ columnWidth: .33,fieldLabel: 'BAnner Name',name: 'bAnnerName',new Ext.form.ComboBox({ fieldLabel: 'Art Type',emptyText: 'Art Type',store: artTypesList,displayField: 'name' })] // close items for second column },items: [{ xtype: 'hidden' },new Ext.form.ComboBox({ fieldLabel: 'Art Size',emptyText: 'Art Size',store: artSizeList,displayField: 'name' })] // close items for third column }] }] }); // close searchForm FormPanel
它显示的东西看起来像这样:
只有问题是我想要将“艺术尺寸”字段/标签与“广告客户”和“艺术类型”字段在同一行上对齐.有没有什么办法添加一个“空白”项目,这样它会强制输入到正确的行?还有另一种方法,我失踪了吗?
谢谢!
编辑:
这是有效的:
{ xtype: 'component',fieldLabel: ' ',labelSeparator: ' ',}
fieldLabel: ' ',
你可以做到这一点:
hideEmptyLabel : false
即使没有指定标签,巫婆也会对齐您的档案组件.
以上是大佬教程为你收集整理的表单 – ExtJS – 在FormPanel列布局中排列表单元素全部内容,希望文章能够帮你解决表单 – ExtJS – 在FormPanel列布局中排列表单元素所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。