extjs4 textfield width
生活随笔
收集整理的這篇文章主要介紹了
extjs4 textfield width
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
extjs4.2 控制form表單中field等組件的寬度。
首先,確保form的layout是‘a(chǎn)nchor’的。
然后,在代碼中配置anchor屬性,如下圖:
initComponent:?function?()?{this.items?=?[{xtype:?'textfield',padding:?'10?0?0?5',anchor:?'30%',fieldLabel:?'申請(qǐng)書編號(hào)',name:?'appNum'},{xtype:?'textareafield',padding:?'10?0?0?0',anchor:?'100%',grow:?true,name:?'legCharger',height:?150}];this.callParent();}效果如下圖:
轉(zhuǎn)載于:https://blog.51cto.com/wangyuelucky/1427265
總結(jié)
以上是生活随笔為你收集整理的extjs4 textfield width的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 深入理解DIP、IoC、DI以及IoC容
- 下一篇: 【高德地图API】那些年我们一起开发的A