Skip to content

Commit d264dab

Browse files
committed
docs: add documentation about filter multiselect field
1 parent 9365718 commit d264dab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,3 +704,29 @@ export default {
704704
```
705705
`debounceTimeMs` field dictates how long (in milliseconds) to wait between inputs to send updated data request. By increasing this value, you can reduce the amount of requests set to backend. Default value for this field is set to 10ms.
706706
`substringSearch` sets what comparison operator to use for text field. By default this field is set to `true`, which results in using case-insensitive `ILIKE` operator, that will look for records that have filter string anywhere inside field value. Setting this `substringSearch` to `false` will result in using more strict `EQ` operator, that will look for exact full-string matches.
707+
708+
You can also disabled multiselect on filter page for enumerator columns or foreign resource columns by adding `multiselect` field:
709+
710+
```typescript title="./resources/adminuser.ts"
711+
export default {
712+
name: 'adminuser',
713+
columns: [
714+
...
715+
{
716+
name: "parentUserId",
717+
foreignResource: {
718+
resourceId: "users",
719+
},
720+
//diff-add
721+
filterOptions: {
722+
//diff-add
723+
multiselect: false,
724+
//diff-add
725+
},
726+
},
727+
],
728+
},
729+
...
730+
],
731+
```
732+
This way, multiselect field displayed on filter page will be replaced with a default select field allowing only only value to be selected.

0 commit comments

Comments
 (0)