Last page update: November 23, 2011
Note
ToggleButton features:
- Type: Dojo widget
- Common attributes: check the common attributes section
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
Note
example elements’ list:
- classes: GnrCustomWebPage
- components: TestHandlerFull
- webpage variables: py_requires
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')