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

Request: include prop for initial setting #12

Open
PatrickCaneloDigital opened this issue Jul 16, 2019 · 1 comment
Open

Request: include prop for initial setting #12

PatrickCaneloDigital opened this issue Jul 16, 2019 · 1 comment

Comments

@PatrickCaneloDigital
Copy link

PatrickCaneloDigital commented Jul 16, 2019

First of all thank you very much for this module, it's nearly exactly what i was looking for.

The only option I am actually missing is an option-parameter which allows to make an initial setting in the drop-down.
Use Case: The very first time you use the module you want to make a setting.
But if you like to use the dropdown for an update, I actually see no way to pass forward the "selected" id which was set initially.
(e.g. book categories, the first time you select 'suspense' but then want to change it to 'drama'. So if you want to load the select with the initial category, I see actually no way to tell the module to have entry with id=x preselected)

Thx

oh a PD: what is the behaviour if I type some string which is not included in the options? which is the value of the option in that case? 'empty', '' or 'undefined'?
or put in other word, how can I validate that the selected value exists?

@pstaabp
Copy link

pstaabp commented Feb 2, 2020

I just gave another thumbs up on this. Alternatively, it seems like having a v-model option would be a nice way to handle this.

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

2 participants