2. CheckBox

Last page update: November 23, 2011

Note

CheckBox features:

2.1. definition

GnrDomSrc_dojo_11.checkbox(label=None, value=None, **kwargs)

Return a CheckBox: setting the value to true will check the box while false will uncheck it

Parameters:
  • label – the checkbox label
  • value – the checkbox path for value. For more information, check the datapath section

2.2. examples

2.2.1. simple example

  • checkbox [basic]

    Note

    example elements’ list:

  • Code:

    # -*- coding: UTF-8 -*-
    """Checkbox"""
    
    class GnrCustomWebPage(object):
        py_requires = "gnrcomponents/testhandler:TestHandlerFull"
    
        def test_1_basic(self, pane):
            """Checkbox"""
            labels = 'First,Second,Third'
            labels = labels.split(',')
            pane = pane.formbuilder()
            for label in labels:
                pane.checkbox(value='^.%s_checkbox' % label, label=label)
    

Table Of Contents

Previous topic

1.2.4. ToggleButton

Next topic

3. checkBoxText

This Page