ExtJS adding items that wrap
This seems like a simple question, but I am unable to figure it out. I want to add items (in this case simply buttons) to a panel that will sit side-by-side, but wrap when it gets 开发者_如何学Cto the end of the panel...
Thanks, JJ
I don't think there is a way to wrap buttons on a panel. Don't you think the there is better ways to have buttons on a panel? We have toolbars for that reason! Ext JS provides you will both top and bottom toolbars.
I recommend you make use of these and creating a menu rather than adding buttons directly. This will definitely have better UX than the wrapped buttons on panel.
The best solution I came up with was to use a table layout, so then I could just list the items and they would wrap once they reached the end column. But this does not allow for a dynamic number of items in the panel....
精彩评论