Last page update: November 15, 2011
Note
toolbar features:
- Type: Dojo-improved widget
- Common attributes: check the common attributes section
In the image, a toolbar
![]()
- pane.toolbar([**kwargs])¶
In Dojo, the Dojo toolbar is a container for buttons. Any button-based Dijit component can be placed on the toolbar, DropDownButtons.
In Genro, the Dojo toolbar is a container for any form widget (like buttons, Textboxes...)
The only mandatory parameter is the height parameter
Note
example elements’ list:
- classes: GnrCustomWebPage
- components: TestHandlerFull
- webpage variables: py_requires
- widgets: button, ContentPane, formbuilder, slotButton, TextBox
Code:
# -*- coding: UTF-8 -*- """Dojo toolbar""" class GnrCustomWebPage(object): py_requires = """gnrcomponents/testhandler:TestHandlerFull""" def test_0_basic(self, pane): """Basic example""" tb = pane.toolbar(height='20px') fb = tb.formbuilder(cols=8, border_spacing=0) for i in ['icnBaseAdd', 'icnBuilding', 'icnBaseCalendar', 'icnBuddy', 'queryMenu', 'icnBuddyChat']: fb.slotButton('tooltip', iconClass=i, action='alert("Performing an action...")') fb.textbox() fb.button('save', action='alert("Saving!")')