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

Instead of string being an object #26

Open
fabioselau077 opened this issue May 22, 2021 · 2 comments
Open

Instead of string being an object #26

fabioselau077 opened this issue May 22, 2021 · 2 comments

Comments

@fabioselau077
Copy link

Hello, how instead of using a string how do I use an object?
For example, create an object with name and value and in the display show item.name but the value will be item.value.
Has as?

@vizhan-lanars
Copy link
Collaborator

Hello
Didn't get you.
Could you be more specific?

@ngoctai
Copy link

ngoctai commented Jun 13, 2023

He means the value of items is different from the label. For example:
[{value: "dog", name: "Big dog"}, {value: "cat", name: "Smart Cat"} ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants