independentSingleSelectStrategy
Commons
stable
Returns a TStrategySelect object implementing single-item selection: at most one item can be selected at a time. Built on top of independentSelectStrategy by slicing the input to one element.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- mandatoryboolean
- When true, the strategy prevents deselecting the currently selected item, enforcing that exactly one item is always selected.
API
Valeur de retour
La valeur retournée par cet util.
- A strategy object with select, in, and out methods. Selecting a new item automatically deselects the previous one.
Usage
Exemples
Extraits de code prêts à coller.
Single-select (radio-like) behaviour