-
Notifications
You must be signed in to change notification settings - Fork 20
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
Groups? #103
Comments
+1 I am really looking for that! I can't find any alternative components on Vue3... |
@gr8bit @valh1996 Sorry for not getting back to you sooner. In order to support as many as possible use cases (e.g, nested groups) and keep it flexible as well, it would be great if there have a prop When click on a group option, all of its values (the value must be an Array) will be selected.
const options = ref([
{ value: ['i', 'love', 'vue'], group: true }, // click on this group option will select all options, and deselect all options if those options are already selected.
{ value: 'i' },
{ value: 'love' },
{ value: 'vue' },
])
const options = ref([
{ value: ['1-1-1', '1-1-2', '1-2-1', '1-2-2'], group: true },
{ value: ['1-1-1', '1-1-2'], group: true },
{ value: '1-1-1' },
{ value: '1-1-2' },
{ value: ['1-2-1', '1-2-2'], group: true },
{ value: '1-2-1' },
{ value: '1-2-2' },
])
const options = ref([
{ value: ['i', 'love', 'vue'], group: true, level: 1 }, // you can add any info to option, it could help you to determine the level is or else.
{ value: 'i' },
{ value: 'love' },
{ value: 'vue' },
]) I have added some test cases for this blueprint too, please see this test file. Thank you for your time. |
@iendeavor very cool! One thought though: what about disabling a group of elements...? Maybe |
Maybe there should add |
I think the normal |
Yes, you are right 👍 , I will keep this in mind, but I have to go to sleep now 😄 . |
Well deserved! 😄 |
It is released 😄 . |
Hi all,
one feature the vue-select-package was (and is!) missing is the possibility to have option groups (similar to the html select). Anyone thought about this yet?
Feature wishlist:
Cheers! :)
The text was updated successfully, but these errors were encountered: