1.2.4. ToggleButton

Last page update: November 23, 2011

Note

ToggleButton features:

1.2.4.1. definition

GnrDomSrc_dojo_11.togglebutton(label=None, **kwargs)

A toggle button is a button that represents a setting with two states: True and False. Use the iconClass attribute to allow the user to know (see) the current status

Parameters:
  • label – the button’s label
  • kwargs
    • iconClass: the button icon. For more information, check the iconClass section
    • showLabel: boolean. If True, show the button label

1.2.4.2. examples

1.2.4.2.1. simple example

  • togglebutton [basic]

    Note

    example elements’ list:

  • Code:

    # -*- coding: UTF-8 -*-
    """Toggle buttons"""
    
    class GnrCustomWebPage(object):
        py_requires = "gnrcomponents/testhandler:TestHandlerFull"
    
        def test_1_basic(self, pane):
            """Simple test"""
            pane.togglebutton(value='^.toggle', iconClass="dijitRadioIcon", label='A togglebutton')
    

Table Of Contents

Previous topic

1.2.3. slotButton

Next topic

2. CheckBox

This Page