Results 1 to 3 of 3

Thread: FramedPanel buttons using UiBinder

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default 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:

    @UiField
    FramedPanel fp;
    ...
    // Works
    fp.addButton(myAwesomeButton);

    But i can't accomplish this with UiBinder. Has anyone done this before or know if its supported?
    Thanks!

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    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>

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thanks very much it works. I wasn't wrapping the buttons with <c:button>....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •