This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
BG78
Hi @all.
I'm building a Plugin Component. In properties i'd like to add a multiselect option (e.g. checkboxList) instead of a dropdown. Is this possible?
Below is an example for what i mean:
'publicationgroups' => [
'title' => 'Title',
'type' => 'checkboxList',
'options' => $this->getPublicationgroupOptions(),
'group' => 'Group'
],
Thank you, for your help.
Last updated
JenniferLopez
@BG78 I believe what you are looking for is the "Set Editor" for the Inspector popup:
{
"property": "context",
"title": "Context",
"type": "set",
"items": {
"create": "Create",
"update": "Update",
"preview": "Preview"
},
"default": ["create", "update"]
}
Eoler
BG78 said: I'm building a Plugin Component. In properties i'd like to add a multiselect option (e.g. checkboxList) instead of a dropdown. Is this possible?
Yes, its called set
: https://octobercms.com/docs/plugin/components#dropdown-properties
1-4 of 4