Sri
Sri

Reputation: 1217

CQ5 Multiselect component

Lately, I found there is no "Multiselect" component in cq5. I am looking if someone could guide me or share something to create a "Multiselect component" that would be great.

xtype - 'selection' - select dropdown allows only to select one item. I need to select multiple items.

Thank you, Sri

Upvotes: 0

Views: 1771

Answers (1)

Shawn
Shawn

Reputation: 9402

You can configure the "selection" xtype as a checkbox:

type="checkbox"
xtype="selection"

See https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.form.Selection for all the config options. It states that

The type of the selection. One of "checkbox", "radio", "select" or "combobox". "checkbox" is the only type that supports mulitple values

Upvotes: 1

Related Questions