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
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

BG78
BG78

Is there a solution to this question?

BennoThommo
BennoThommo

@BG78 I believe what you are looking for is the "Set Editor" for the Inspector popup:

https://github.com/octobercms/october/blob/develop/modules/system/assets/ui/docs/inspector.md#set-editor

{
    "property": "context",
    "title": "Context",
    "type": "set",
    "items": {
        "create": "Create",
        "update": "Update",
        "preview": "Preview"
    },
    "default": ["create", "update"]
}
Eoler
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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.