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

Enhancement: PSelect option labels should be optional, fall back to displaying values instead #873

Open
znicholasbrown opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@znicholasbrown
Copy link
Contributor

znicholasbrown commented Aug 2, 2023

The options list for PSelect could probably include a flat list of values instead of a list of objects. This would improve the bootstrapping dev ex significantly by transforming options from:

const options = [
    { label: 'Data Engineering', value: 'Data Engineering' },
    { label: 'DevOps', value: 'DevOps' },
    { label: 'Machine Learning', value: 'Machine Learning' },
    { label: 'Software', value: 'Software Engineering' },
    { label: 'Other', value: 'Other' },
]

to

const options = ['Data Engineering', 'DevOps', 'Machine Learning', 'Software Engineering',  'Other' ]
@znicholasbrown znicholasbrown added enhancement New feature or request good first issue Good for newcomers labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant