简体   繁体   English

在Ext.form.panel上向左移动表单按钮

[英]Move form button to left on Ext.form.panel

I have basic Ext.form.panel component in my application. 我的应用程序中有基本的Ext.form.panel组件。 I used the buttons:[{list of buttons}] property to add reset and submit buttons for the form. 我使用了buttons:[{按钮列表}]属性来为表单添加重置和提交按钮。

Everything looks well and works well except the buttons are always positioned towards the right side of the form. 除了按钮始终位于表单的右侧之外,其他所有内容看起来都很好并且可以正常运行。

I have grid which is on right of the form and when I resize the browser the grid covers the buttons so they are not visible. 我在表格的右边有网格,当我调整浏览器的大小时,网格覆盖了按钮,因此它们不可见。 (form and grid are postioned using column layout) (表单和网格使用列布局定位)

I would like to move form buttons to the left of the form. 我想将表单按钮移到表单的左侧。

Is there some property to do this? 有一些属性可以做到这一点吗?

I tried align:"left" but it doesn't work. 我试过align:“ left”但它不起作用。

buttonAlign:“ left”应该正常工作, http ://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.Panel-cfg-buttonAlign

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM