__init__(self,
lookup=None,
formstyle=None,
levels=None,
multiple=False,
filter=None,
leafonly=True,
cascade=None,
represent=None,
inline=False)
(Constructor)
| source code
|
Constructor
- Parameters:
lookup - the name of the hierarchical lookup-table
formstyle - the formstyle to use for the inline-selectors (defaults to
s3.crud.formstyle)
levels - list of labels for the hierarchy levels, in top-down order
multiple - allow selection of multiple options
filter - resource filter expression to filter the selectable options
leafonly - allow only leaf-nodes to be selected
cascade - automatically select child-nodes when a parent node is selected
(override option, implied by leafonly if not set explicitly)
represent - representation function for the nodes (defaults to the represent
of the field)
inline - formstyle uses inline-labels, so add a colon
|