Skip to content
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

[Docs] Fix incorrect Javascript term in AutocompleteInput docs #7843

Closed
wants to merge 1 commit into from
Closed

[Docs] Fix incorrect Javascript term in AutocompleteInput docs #7843

wants to merge 1 commit into from

Conversation

davidhenley
Copy link
Contributor

These are Javascript objects, not tuples

These are Javascript objects, not tuples
Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this anyway 🙂

Set the `choices` attribute to determine the options list (with `id`, `name` tuples).
Set the `choices` attribute to determine the options list (with `id`, `name` objects).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree those are not "tuples", but to me they aren't objects either. Maybe "fields" or "attributes" would be better?

Copy link
Contributor Author

@davidhenley davidhenley Jun 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are javascript objects with id and name properties. I agree, the wording is a bit weird.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest

Set the choices attribute to determine the options list. The value must be an array of objects exposing the id and name for each choice.

@slax57 slax57 added the RFR Ready For Review label Jun 16, 2022
@slax57 slax57 added this to the 4.1.4 milestone Jun 16, 2022
@fzaninotto fzaninotto removed this from the 4.1.4 milestone Jun 17, 2022
fzaninotto added a commit that referenced this pull request Jul 8, 2022
@fzaninotto
Copy link
Member

Superseded by #7949

@fzaninotto fzaninotto closed this Jul 8, 2022
JinParc pushed a commit to JinParc/react-admin that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants