PDA

View Full Version : [CLOSED] Ext.form.Panel misses buttons config



abraxxa
6 Feb 2012, 6:07 AM
The buttons config is missing in the component config listing.
Adding a custom config option called 'buttons' as a workaround doesn't work either because the value is set as string.

This happens with the beta version 2.0.0 build 268.

aconran
6 Feb 2012, 12:47 PM
This is/was intentional. However, the buttons configuration is no longer marked as deprecated. http://docs.sencha.com/ext-js/4-0/#!/api/Ext.panel.Panel-cfg-buttons

I will check with the Ext JS framework team to see if it will stick around. That being said a better way of doing this is by placing a Toolbar in as a dockedItem, setting the dock config to 'bottom' and the ui to 'footer'.

On a different note, when adding custom configurations the designer will automatically assume that it is a string unless you denote to it that it will be some other sort of object. If you put in "buttons: []" and then clicked add you would see that it would create the buttons configuration as an array instead of a string.

abraxxa
6 Feb 2012, 2:23 PM
Thanks for the infos Aaron!
Please highlight this feature for custom configurations in the UI somehow, maybe with a dropdown between config key and add button which defaults to string and has an array and hash option too.

Tod
14 May 2012, 10:29 AM
You might consider changing the examples such as "simple form" to use this approach. Also note that Architect does not support 'component', you have to use a container.
-Tod