gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Examples of using style=dropdown and style=listbox in gnue-forms


From: Kishan Bhat
Subject: Examples of using style=dropdown and style=listbox in gnue-forms
Date: Sun, 27 Feb 2011 20:09:43 +0530

"entry" accepts a style attribute which can take:
                  'auto': {'Label': _('Automatic')},
                  'default': {'Label': _('Default')},
                  'password': {'Label': _('Password/Hidden')},
                  'dropdown': {'Label': _('Dropdown/Combo box')},
                  'listbox': {'Label': _('Listbox')},
                  'checkbox': {'Label': _('Checkbox')},
                  'multiline': {'Label': _('Multiline-Edit')},
                  'label': {'Label': _('Label (non-editable)')} },

Label and multiline worked fine for me. But how do I use dropdown and listbox? Can someone help me with an example?

Note: Without defining a style, I can get a dropdown (though not combobox) by adding fk_source atrib to a field . Similarly, I get checkbox for boolean datatype.

Thanks,
Kishan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]