Skip to content

ChoiceSet expanded style does not show as radio #71

@badarsebard

Description

@badarsebard

The style attribute of ChoiceSet does not influence the appearance of the rendered object. The expected behavior is for the choices to appear as a group of radio buttons. The current behavior shows the rendered object as a dropdown for both compact and expanded values.

Examples

From the Todoist Integration Examples Lorem Ipsum example:

const choiceSet = new ChoiceSetInput()
choiceSet.id = 'Input.Choice'
choiceSet.style = 'expanded'
choiceSet.choices = [
    new Choice('1'),
    new Choice('2'),
    new Choice('3'),
]
choiceSet.defaultValue = '1'

card.addItem(choiceSet)

image

From an integration I'm currently working on:

{
  "type": "Input.ChoiceSet",
  "id": "dayChoice",
  "label": "Expires",
  "style": "expanded",
  "choices": [
      {
          "title": "Today",
          "value": "today"
      },
      {
          "title": "Tomorrow",
          "value": "tomorrow"
      }
  ]
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions