Skip to content

Resolve "Improve Dropdow element to allow to change the display"

What is in this MR

For now the dropdown element allow the designer to display a dropdown. However a dropdown to select a value might not be the best component. If we have only two values, may be we want to display radio buttons or checkboxes in case of multiple selection (see #2515).

Steps:

  • Add an option to choose the display (dropdown/radio/checkboxes)
  • Implement each variant.

How to test this MR

  • Create a page in the application builder
  • Create one or more Choice elements (new name of the Dropdown element)
  • Play with the various configurations:
    • if display is "dropdown" (first button), then the display is always a Dropdown
    • if display is "checkbox/radio" (second button), then the display will be:
      • if multiple checkboxes
      • otherwise radios

Merge Request Checklist

  • changelog.md has been updated if required.
  • New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder
  • The latest Chrome and Firefox have been used to test any new frontend features
  • Documentation has been updated
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated for any REST API changes
  • Our custom API docs are updated for changes to endpoints accessed via api tokens
  • The UI/UX has been updated following UI Style Guide

Closes #2517

Edited by Andrea Disarò

Merge request reports