9. label

Last page update: October 27, 2011

Note

validity - the label attribute is supported by:

When you have a widget that doesn’t support the label attribute, you can however give a label to it by inserting the widget into a formbuilder. For more information, check the label through formbuilder section

9.1. description

The label attribute allows to add a label to your widget

9.2. label through formbuilder

If your widget doesn’t support the label attribute but you want to give to it a label, you have to:

  1. create a formbuilder
  2. append your widget to the formbuilder
  3. use the formbuilder’s lbl attribute on your widget.

Example (with ComboBox):

class GnrCustomWebPage(object):
    def test_1_values(self,pane):
        bc = pane.borderContainer(datapath='test1')
        fb = bc.formbuilder()
        fb.combobox(value='^.record.values',values='Football,Golf,Karate',
                    lbl='loaded from values')

Table Of Contents

Previous topic

8. iconClass

Next topic

10. nodeId

This Page