| | 119 | S3HierarchyFilter presents filter options as [wiki:S3HierarchyWidget hierarchical widget]: |
| | 120 | |
| | 121 | [[Image(s3hierarchyfilter.png)]] |
| | 122 | |
| | 123 | '''Configuration''': |
| | 124 | |
| | 125 | {{{#!python |
| | 126 | instance = S3HierarchyFilter(field, |
| | 127 | label=None, |
| | 128 | lookup=tablename, |
| | 129 | represent=represent, |
| | 130 | multiple=True, |
| | 131 | leafonly=True, |
| | 132 | ) |
| | 133 | }}} |
| | 134 | |
| | 135 | '''Parameters''': |
| | 136 | |
| | 137 | ||'''Parameter'''||'''Type'''||'''Explanation'''||'''Default'''|| |
| | 138 | ||field||string||field selector for the field to filter by ''(required)''||-|| |
| | 139 | ||label||string or lazyT||the label for the fitler widget||None|| |
| | 140 | ||lookup||string||name of the hierarchical lookup table||inferred from field|| |
| | 141 | ||represent||callable||representation function for the options||inferred from field|| |
| | 142 | ||multiple||boolean||allow selection of multiple options||True|| |
| | 143 | ||leafonly||boolean||only leaf nodes in the hierarchy can be selected||True|| |