independentSelectStrategy

Commons
stable

Returns a TStrategySelect object implementing independent multi-selection: each item is toggled independently without affecting siblings. An optional mandatory flag prevents deselecting the last selected item.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

mandatory
boolean
When true, the strategy prevents deselecting an item if it is the only one currently selected.

API

Valeur de retour

La valeur retournée par cet util.

A strategy object with select, in, and out methods consumed by useNestedItems.

Usage

Exemples

Extraits de code prêts à coller.

Multi-select without parent cascade

typescript