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
The label attribute allows to add a label to your widget
If your widget doesn’t support the label attribute but you want to give to it a label, you have to:
- create a formbuilder
- append your widget to the formbuilder
- 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')