-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Fix <AutompleteInput create>
prop example
#9071
[Doc] Fix <AutompleteInput create>
prop example
#9071
Conversation
…pet to desmontrate recordRepresentation
The video is too wide and too tall, and it's barely readable. |
I update videos, let me know if their are ok :) |
<AutompleteInput create>
prop example
@@ -799,7 +831,7 @@ const CreateCategory = () => { | |||
|
|||
**Tip:** As showcased in this example, react-admin provides a convenient hook for accessing the filter the user has already input in the `<AutocompleteInput>`: `useCreateSuggestionContext`. | |||
|
|||
The `Create %{item}` option will only be displayed once the user has already set a filter (by typing in some input). If you expect your users to create new items often, you can make this more user-friendly by adding a placeholder text like this: | |||
The `Create %{item}%` option will only be displayed once the user has already set a filter (by typing in some input). If you expect your users to create new items often, you can make this more user-friendly by adding a placeholder text like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this was not a typo, this is the way we declare template variables in polyglot 😬
(see https://github.com/marmelab/react-admin/blob/master/packages/ra-language-english/src/index.ts#L16)
Problem:
create
prop ?Solution:
create
prop does