6.3.7.2.1. toolbar

Last page update: November 15, 2011

Note

toolbar features:

In the image, a toolbar

../../../_images/toolbar3.png

6.3.7.2.1.1. definition

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

6.3.7.2.1.2. examples

6.3.7.2.1.2.1. simple example

  • toolbar [basic]

    Note

    example elements’ list:

  • 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!")')
    

Table Of Contents

Previous topic

6.3.7. toolbars

Next topic

6.3.7.2.2. slotBar and slotToolbar

This Page