Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChoiceSet expanded style does not show as radio #71

Open
badarsebard opened this issue Aug 3, 2024 · 0 comments
Open

ChoiceSet expanded style does not show as radio #71

badarsebard opened this issue Aug 3, 2024 · 0 comments

Comments

@badarsebard
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant