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

valOptions is only designed to build menu items whose user-facing item text and values are the same #5

Open
the-vampiire opened this issue Jul 26, 2017 · 1 comment

Comments

@the-vampiire
Copy link
Owner

Need to figure out a concise way to allow separate item texts and values

@the-vampiire
Copy link
Owner Author

Dan's suggestion

Simple (type: string - text and values are the same)
menuItems = ['string items', '...'];

Complex(type: object - text and values are separated)
menuItems = [{ valueText: 'user facing text'}]

the-vampiire added a commit that referenced this issue Oct 4, 2017
updated valOptions to now accept the original array of strings which represent both the menu item text and its value and the new array type with objects. this change allows for menu item text to be different from the actual value associated with that text.
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

1 participant