flattenItems
DataTable
stable
Flatten a DataTable item tree (rows + groups) according to the current open-group set, returning only the rows that should be visible at the current expansion state.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- itemsrequisArray<(T | IDataTableGroup<T>)>
- The mixed array of leaf rows and group nodes to flatten.
- openedrequisSet<string>
- Set of group IDs that are currently expanded. A group not in this set hides its children.
API
Valeur de retour
La valeur retournée par cet util.
- A flat array of visible items in the order they should be rendered by the DataTable.
Usage
Exemples
Extraits de code prêts à coller.
Flatten with one open group