Home > @uniformdev/mesh-sdk-react > variablesToGroupedList
variablesToGroupedList() function
Groups variable definitions by their source
property, and sorts the groups using variablesToList
. Returns a flat list of groups and variables. Groups are sorted alphabetically.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
variables | Record<string, MeshDataVariableDefinition> | undefined | |
filterFn | (variableName: string, variableDefinition: MeshDataVariableDefinition, context: TEditorContext | undefined) => boolean | (Optional) |
context | TEditorContext | (Optional) |
Returns:
Array<VariableSourceGroup>