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

ParameterTypeDescription
variablesRecord<string, MeshDataVariableDefinition> | undefined
filterFn(variableName: string, variableDefinition: MeshDataVariableDefinition, context: TEditorContext | undefined) => boolean(Optional)
contextTEditorContext(Optional)

Returns:

Array<VariableSourceGroup>