aceUISelect

The aceUISelect widget allows for the editor to select a value from a number of possible choices using a select button.

Minion Minion Minion

Configuration

Attribute Description Default
"options" Array

The possible choices to select from. If supplied as an array or string values, the supplied values will be used as both keys and values. If supplied as an array of objects, keys and labels will be taken from the object properties. See example below.
[]

Localization

This widget has localization support, both for the widget label / help text and the option labels.

Expected domain objects

This widget expects a single domain object of type string.

Example template json with options as label / value objects

{
  "label": "Article status",
  "widget": "aceUISelect",

  "config": {
    "options": [
      {
        "label": "Draft",
        "value": "articleStatus.draft"
      },

      {
        "label": "Waiting for images",
        "value": "articleStatus.waitingForImages"
      },

      {
        "label": "Ready to publish",
        "value": "articleStatus.readyToPublish"
      },

      {
        "label": "Published",
        "value": "articleStatus.published"
      }
    ]
  },

  "domainObject": "article/articleStatus"
}

Example template json with options as a list

{
  "label": "Article status",
  "widget": "aceUISelect",

  "config": {
    "options": [
      "articleStatus.draft",
      "articleStatus.waitingForImages",
      "articleStatus.readyToPublish",
      "articleStatus.published"
    ]
  },

  "domainObject": "article/articleStatus"
}