collection.getAllVariableModes()

Get all variable modes in a collection.

Syntax

1collection.getAllVariableModes(): Promise<Array<VariableMode>>

Returns

Promise<Array<VariableMode>>

A Promise that resolves to an array of VariableMode objects.

Example

1// Get Collection
2const collection = await webflow.getDefaultVariableCollection()
3
4// Get All Variable Modes
5const variableModes = await collection.getAllVariableModes()
6console.log(variableModes)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny
Built with