-
30 Apr 2012 8:30 AM #1
FramedPanel buttons using UiBinder
FramedPanel buttons using UiBinder
Excited about the 3.0 Release. But i'm having trouble getting buttons to appear in the footer of a FramedPanel using UiBinder. I can do it fine in Java:
@UiFieldBut i can't accomplish this with UiBinder. Has anyone done this before or know if its supported?
FramedPanel fp;
...
// Works
fp.addButton(myAwesomeButton);
Thanks!
-
1 May 2012 4:03 PM #2
This example might help: http://sencha.com/examples/#ExampleP...ield(uibinder). Important piece here:
Code:<c:FramedPanel ui:field="panel" headingText="DualListField UiBinder Example" width="550" addStyleNames="margin-10"> <container:VerticalLayoutContainer> <!-- main content here --> </container:VerticalLayoutContainer> <c:button> <button:TextButton text="Cancel" /> </c:button> <c:button> <button:TextButton text="Save" /> </c:button> </c:FramedPanel>
-
2 May 2012 6:08 AM #3
Thanks very much it works. I wasn't wrapping the buttons with <c:button>....


Reply With Quote