How to add Combo box to ContentPanel Header? This has to be down via UIBINDER.
Printable View
How to add Combo box to ContentPanel Header? This has to be down via UIBINDER.
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>