appbaseio / appbaseio/reactivesearch

Feature Request: Add ability for ToggleButton to operate like an HTML radio button

Aperta
#286 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement web :spider_web:
Lingua principale
JavaScript
Stelle
4.9k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Issue Type:
Enhancement

Description:
Right now the ToggleButton component acts like a group of HTML checkboxes, which is fine, but there is room for more flexibility. It would be useful to add the ability to let the ToggleButton component operate like an HTML radio button; meaning, it can be configured such that one value (and only one value) must be selected at all times.

Additionally, if the feature is added, it would be useful to have the ability to add an option that when selected is the equivalent to a no-op, meaning it would operate the same if no options were selected. Maybe something like:

```jsx

```

This way, an option is always clearly selected, but you still have the flexibility of searching across all categories.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.