PDA

View Full Version : TabPanel toolbar button



qooleot
5 Dec 2010, 7:54 AM
Is it possible to access the toolbar for a tabpanel and add a custom styled button to the far right (thats not a tab)? What I want is 2 tabs and a little "Add" button right justified.

The only thing I can think of is to not use the tabpanel and make a regular panel with a toolbar and a segmentedbutton group and writing all the logic for a tabpanel manually (swapping in different contents, the animation, and style the buttons to look like a tabpanel instead of a segmentedbutton default look).

A second toolbar within each tab of the tabpanel would take up too much vertical space so thats not going to work.

Thanks for the help!

Animal
5 Dec 2010, 12:19 PM
To get the tabbar use



myTabPanel.child('tabbar')


That is simply an hbox layout Panel.

Add a Button to it (after a flex:1 component to push it to the right)

Remember that to render newly added child Components you call doLayout on the Container.