Results 1 to 2 of 2

Thread: How to add Combo box to ContentPanel Header?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    India
    Posts
    14
    Vote Rating
    0
      0  

    Default How to add Combo box to ContentPanel Header?

    How to add Combo box to ContentPanel Header? This has to be down via UIBINDER.

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

    Default

    Anything that can be done in uibinder can be done in real java - the uibinder xml gets generated into Java before it can be compiled to JavaScript. The opposite is not always true, but in this case it should work.

    The ContentPanel.addTool method will add a widget to the toolbar on the left side of the contentpanel header. As the addTool method is tagged with @UiChild, you can add a tool using a tag titled tool.

    Code:
    <c:ContentPanel headingText="Panel with Combo" width="350">
      <c:tool>
        <form:ComboBox ... />
      </c:tool>
      <container:VerticalLayoutContainer>
        ...
      </container:VerticalLayoutContainer>
    </c:ContentPanel>

Posting Permissions

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