1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    0
    thumky is on a distinguished road

      0  

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

    @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,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      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
    thumky is on a distinguished road

      0  

    Default


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

Thread Participants: 1