139 | | S3CRUD has filter forms integrated in the standard list view (=multi-record request w/o URL method) - as well as the /datatable_f and /datalist_f views. |
140 | | |
141 | | For these pages, the filter widgets are configured per resource as a list of filter widget instances in the "filter_widgets"-setting like: |
| 139 | ==== Standard List Views ==== |
| 140 | |
| 141 | S3CRUD has filter forms integrated in the standard list view (=multi-record request w/o URL method). The filter form can be suppressed by a keyword argument to {{{s3_rest_controller()}}: |
| 142 | |
| 143 | {{{ |
| 144 | output = s3_rest_controller(prefix, resourcename, |
| 145 | hide_filter=True # hide filter form in list views |
| 146 | ) |
| 147 | }}} |
| 148 | |
| 149 | To render only the datatable or datalist without the filter form, choose the /datatable or /datalist method instead. |
| 150 | |
| 151 | To choose a particular list type from the URL yet render the filter form, choose the /datatable_f resp. the /datalist_f method (overrides hide_filter). |
| 152 | |
| 153 | ==== Configuration ==== |
| 154 | |
| 155 | For pages with filter forms, the filter widgets are configured per resource as a list of filter widget instances in the "filter_widgets"-setting like: |