Skip to content
Cédric Joron edited this page Jul 22, 2013 · 1 revision

Widget

A widget is a attribute view type. For the moment, you can specify:

Text Field

Integer Field

Date Field

The 3 fields are type of input type="text". But LBE will control the value of each type.

Choice Field

Choice Field is a select type.

Arguments Widget

The Argument Widget by default is None (for example the Text Field).

Some field needs argument such as the Choice Field wich need a tuple of values.

In order to set the argument widget, you need to know few python syntaxic, such as tuple definition, and Django Field (more information: https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#django.db.models.Field).

An example of tuple definition about a Choice Field ( ex. Gender):

(('M','Male'),('F','Female'))
Clone this wiki locally