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: docs/AutocompleteInput.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ The form value for the source must be the selected value, e.g.
70
70
|`offline`| Optional |`ReactNode`| - | What to render when there is no network connectivity when fetching the choices |
71
71
|`onChange`| Optional |`Function`|`-`| A function called with the new value, along with the selected record, when the input value changes |
72
72
|`onCreate`| Optional |`Function`|`-`| A function called with the current filter value when users choose to create a new choice. |
73
-
|`optionText`| Optional |`string`|`Function`|`Component`|`undefined`|`record Representation`| Field name of record to display in the suggestion item or function using the choice object as argument |
73
+
|`optionText`| Optional |`function`|`ReactNode`|`undefined`|`record Representation`| Field name of record to display in the suggestion item or function using the choice object as argument |
74
74
|`optionValue`| Optional |`string`|`id`| Field name of record containing the value to use as input value |
75
75
|`setFilter`| Optional |`Function`|`null`| A callback to inform the `searchText` has changed and new `choices` can be retrieved based on this `searchText`. Signature `searchText => void`. This function is automatically set up when using `ReferenceInput`. |
76
76
|`shouldRender Suggestions`| Optional |`Function`|`() => true`| A function that returns a `boolean` to determine whether or not suggestions are rendered. |
|[`children`](#children)| Required | node || The children of `<FilterList>` must be a list of `<FilterListItem>` components. |
79
79
|[`icon`](#icon)| Optional | element || When set, the `<FilterList icon>` prop appears on the left side of the filter label. |
80
-
|[`label`](#label)| Optional |string|| React-admin renders the `<FilterList label>` on top of the child filter items. The string is passed through the `useTranslate` hook, and therefore can be translated. |
80
+
|[`label`](#label)| Optional |`ReactNode`|| React-admin renders the `<FilterList label>` on top of the child filter items. The string is passed through the `useTranslate` hook, and therefore can be translated. |
81
81
82
82
## `children`
83
83
@@ -274,7 +274,7 @@ The children of `<FilterList>` must be a list of `<FilterListItem>` components.
0 commit comments