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/Inputs.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -527,8 +527,8 @@ import { AutocompleteInput } from 'react-admin';
527
527
|`emptyValue`| Optional |`any`|`''`| The value to use for the empty element |
528
528
|`emptyText`| Optional |`string`|`''`| The text to use for the empty element |
529
529
|`matchSuggestion`| Optional |`Function`|`-`| Required if `optionText` is a React element. Function returning a boolean indicating whether a choice matches the filter. `(filter, choice) => boolean`|
530
-
|`optionText`| Optional |`string`|`Function`|`Component`|`name`|Fieldname of record to display in the suggestion item or function which accepts the correct record as argument (`(record)=> {string}`) |
531
-
|`optionValue`| Optional |`string`|`id`|Fieldname of record containing the value to use as input value |
530
+
|`optionText`| Optional |`string`|`Function`|`Component`|`name`|Field name of record to display in the suggestion item or function which accepts the correct record as argument (`(record)=> {string}`) |
531
+
|`optionValue`| Optional |`string`|`id`|Field name of record containing the value to use as input value |
532
532
|`inputText`| Optional |`Function`|`-`| If `optionText` is a custom Component, this function is needed to determine the text displayed for the current selection. |
533
533
|`resettable`| Optional |`boolean`|`false`| Display a button to reset the text filter. Useful when using `<AutocompleteInput>` inside `<Filter>`|
534
534
|`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 setup when using `ReferenceInput`. |
@@ -687,8 +687,8 @@ import { RadioButtonGroupInput } from 'react-admin';
|`choices`| Required |`Object[]`| - | List of items to show as options |
689
689
|`options`| Optional |`Object`| - | Props to pass to the underlying `<RadioButtonGroup>` element |
690
-
|`optionText`| Optional |`string`|`Function`|`name`|Fieldname of record to display in the suggestion item or function which accepts the current record as argument (`(record)=> {string}`) |
691
-
|`optionValue`| Optional |`string`|`id`|Fieldname of record containing the value to use as input value|
690
+
|`optionText`| Optional |`string`|`Function`|`name`|Field name of record to display in the suggestion item or function which accepts the current record as argument (`record=> {string}`) |
691
+
|`optionValue`| Optional |`string`|`id`|Field name of record containing the value to use as input value |
692
692
|`row`| Optional |`boolean`|`true`| Display options in a compact row. |
693
693
|`translateChoice`| Optional |`boolean`|`true`| Whether the choices should be translated |
694
694
@@ -797,8 +797,8 @@ import { SelectInput } from 'react-admin';
797
797
|`choices`| Required |`Object[]`| - | List of items to show as options |
798
798
|`emptyText`| Optional |`string`| '' | The text to display for the empty option |
799
799
|`options`| Optional |`Object`| - | Props to pass to the underlying `<SelectInput>` element |
800
-
|`optionText`| Optional |`string`|`Function`|`name`|Fieldname of record to display in the suggestion item or function which accepts the current record as argument (`(record)=> {string}`) |
801
-
|`optionValue`| Optional |`string`|`id`|Fieldname of record containing the value to use as input value|
800
+
|`optionText`| Optional |`string`|`Function`|`name`|Field name of record to display in the suggestion item or function which accepts the current record as argument (`record=> {string}`) |
801
+
|`optionValue`| Optional |`string`|`id`|Field name of record containing the value to use as input value |
802
802
|`resettable`| Optional |`boolean`|`false`| If `true`, display a button to reset the changes in this input value |
803
803
|`translateChoice`| Optional |`boolean`|`true`| Whether the choices should be translated |
804
804
@@ -1038,8 +1038,8 @@ import { AutocompleteArrayInput } from 'react-admin';
1038
1038
|`allowDuplicates`| Optional |`boolean`|`false`| If `true`, the options can be selected several times |
1039
1039
|`choices`| Required |`Object[]`| - | List of items to autosuggest |
1040
1040
|`matchSuggestion`| Optional |`Function`| - | Required if `optionText` is a React element. Function returning a boolean indicating whether a choice matches the filter. `(filter, choice) => boolean`|
1041
-
|`optionValue`| Optional |`string`|`id`|Fieldname of record containing the value to use as input value |
1042
-
|`optionText`| Optional |`string`|`Function`|`name`|Fieldname of record to display in the suggestion item or function which accepts the current record as argument (`(record)=> {string}`) |
1041
+
|`optionValue`| Optional |`string`|`id`|Field name of record containing the value to use as input value |
1042
+
|`optionText`| Optional |`string`|`Function`|`name`|Field name of record to display in the suggestion item or function which accepts the current record as argument (`record=> {string}`) |
1043
1043
|`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 setup when using `ReferenceInput`. |
1044
1044
|`shouldRenderSuggestions`| Optional |`Function`|`() => true`| A function that returns a `boolean` to determine whether or not suggestions are rendered. Use this when working with large collections of data to improve performance and user experience. This function is passed into the underlying react-autosuggest component. Ex.`(value) => value.trim() > 2`|
1045
1045
|`source`| Required |`string`| - | Name of field to edit, its type should match the type retrieved from `optionValue`|
@@ -1180,8 +1180,8 @@ import { CheckboxGroupInput } from 'react-admin';
|`choices`| Required |`Object[]`| - | List of choices |
1183
-
|`optionText`| Optional |`string`|`Function`|`name`|Fieldname of record to display in the suggestion item or function which accepts the correct record as argument (`(record)=> {string}`) |
1184
-
|`optionValue`| Optional |`string`|`id`|Fieldname of record containing the value to use as input value|
1183
+
|`optionText`| Optional |`string`|`Function`|`name`|Field name of record to display in the suggestion item or function which accepts the correct record as argument (`record=> {string}`) |
1184
+
|`optionValue`| Optional |`string`|`id`|Field name of record containing the value to use as input value |
1185
1185
|`row`| Optional |`boolean`|`true`| Display group of elements in a compact row. |
1186
1186
1187
1187
Refer to [Material UI Checkbox documentation](https://material-ui.com/api/checkbox/) for more details.
`ra-search` can plug to any existing search engine (ElasticSearch, Lucene, or custom search engine), and lets you customize the search results to provide quick navigation to related items, turniun the search engine into an "Omnibox":
1403
+
`ra-search` can plug to any existing search engine (ElasticSearch, Lucene, or custom search engine), and lets you customize the search results to provide quick navigation to related items, turning the search engine into an "Omnibox":
0 commit comments