extractKeys

DataTable
stable

Recursively collects all header key values from a nested DataTable header tree into a Set. Traverses children arrays automatically.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

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

headers
requis
Array<IDataTableHeader>
The flat or nested array of DataTable header definitions to traverse.
keys
Set<string>
new Set<string>()
An existing Set to accumulate keys into. A new empty Set is created when omitted.

API

Valeur de retour

La valeur retournée par cet util.

The (possibly pre-populated) Set with all header key values appended.

Usage

Exemples

Extraits de code prêts à coller.

Collect column keys from nested headers

typescript