开发者

Adding two buttons next to an ExtJS ComboBox

开发者 https://www.devze.com 2023-02-04 01:25 出处:网络
I need to place an Add button and a Remove button next to an ExtJS ComboBox. It\'s critical for these three elements to be in a single line because I have to apply this to all other ComboBoxes in the

I need to place an Add button and a Remove button next to an ExtJS ComboBox. It's critical for these three elements to be in a single line because I have to apply this to all other ComboBoxes in the fieldset too.

P开发者_StackOverflow中文版lease notice that the given ComboBoxes are items of a fieldset. Replacing the buttons with context menu items is not the desired solution.

Can you give me some ideas? Thanks in advance.


For this, you can place all the three elements - combobox and the two buttons - in a container with layout hbox. This will place all of them in the same line.

Hope this helps.


Ext.form.FieldContainer is the class you need.

It has a label and will layout nicely with your form, but can contain multiple fields and controls.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号