-
18 Jul 2012 12:20 PM #1
How do you insert Buttons (fbar) in Form designed by architect?
How do you insert Buttons (fbar) in Form designed by architect?
Is there any way to insert buttons (fbar) when designing a form using Sencha Architect?
Here is a thread on the subject for Ext Designer, I was just checking to see if this limitation has been removed / fixed.
-
18 Jul 2012 12:37 PM #2
Aaron alreay said but this are the steps anyway:
1. Drop a tool bar in the form.
2. Set dock = "bttom"
3. Set ui = "footer"
4. add buttons...
fbar is not supported by SA.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
18 Jul 2012 12:42 PM #3
Yeah I saw that in the other thread. Just wanted to check to see if this had changed. Seems like a weird thing not to support.
I also do not understand what "ui = footer" is suppose to accomplish. When I enter that it just looks like the toolbar is detached from the form.
-
18 Jul 2012 12:50 PM #4
-
18 Jul 2012 1:04 PM #5
Ah I skimmed over that part of the documentation,
is equivalent toCode:fbar: [ { type: 'button', text: 'Button 1' } ]
However when I set ui to 'footer', this is what my UI looks like,Code:dockedItems: [{ xtype: 'toolbar', dock: 'bottom', ui: 'footer', defaults: {minWidth: minButtonWidth}, items: [ { xtype: 'component', flex: 1 }, { xtype: 'button', text: 'Button 1' } ] }]

Notice the grid behind the toolbar.
-
18 Jul 2012 4:06 PM #6
Aaron Conran
@aconran
Sencha Architect Development Team
-
19 Jul 2012 5:49 AM #7
So even though the toolbar is inside the form panel it is rendered as outside of it?
Is there anyway to give it the appearance of being connected to the form?
-
19 Jul 2012 6:58 AM #8
Why?
Is not good enough the way it is?
But if definitely you want do that, one way is:
1. Drop a panel.
2. Drop a form panel inside that panel.
3. Drop the toolbar in the inner panel, set dock=bottom and ui=footer.
4. Add buttons to the form panel's toolbar.
5. Clear the form panel's title.
6. Set form panel's border to 0
7. (optional) set bodyPadding to 5 (or whatever value you want) of the outer panel.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
9 Aug 2012 6:22 AM #9
Thanks for the help everyone.
It seems like a really strange work around to me. It weird that to have a form with a normal looking footer with a button in it I need to create two panels. That method is going to lead to some cluttered code.
If anyone comes up with a better way, please post it here.
-
9 Aug 2012 7:10 AM #10


Reply With Quote