I’m building a custom Cornerstone Component.
With the help of parameters, I would like to add “Hide During Breakpoints” functionality to my custom Component.
I did it with “choose” type.
How can I turn on multi-select for “choose” type? Or optionally for the “select” type?
So the user could select multiple items like:
My current code is:
"control-bp-hide" : {
"type" : "choose",
"label" : "Hide During<br>Breakpoints",
"initial" : "",
"offValue": "",
"options" : [
{ "value" : "x-hide-xs", "icon": "ui:size-xs", "label" : "" },
{ "value" : "x-hide-sm", "icon": "ui:size-sm", "label" : "" },
{ "value" : "x-hide-md", "icon": "ui:size-md", "label" : "" },
{ "value" : "x-hide-lg", "icon": "ui:size-lg", "label" : "" },
{ "value" : "x-hide-xl", "icon": "ui:size-xl", "label" : "" }
]
}
Resulting in:
where I can select only one option at the time, or none.
I can’t find any mention in your documentation about multi-select, but since this is such a basic functionality and you already have it built in Cornerstone, I’m sure it has to be a way to do it - it’s just I’m missing something.
Among other documentation I read:
Looking forward to hearing from you.
Kind regards.