You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -704,3 +704,29 @@ export default {
704
704
```
705
705
`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.
706
706
`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
+
exportdefault {
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.
errors.push(`Resource "${res.resourceId}" column "${col.name}" has multiselectFilter in filterOptions that is not boolean`);
480
+
}
481
+
482
+
if(!col.enum&&!col.foreignResource){
483
+
errors.push(`Resource "${res.resourceId}" column "${col.name}" multiselectFilter in filterOptions should be set only for enum or foreign resource columns`);
0 commit comments