Get all variable modes

collection.getAllVariableModes()

Get all variable modes in a collection.

Syntax

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

Returns

Promise<Array<VariableMode>>

A Promise that resolves to an array of VariableMode objects.

Example

// Get Collection
const collection = await webflow.getDefaultVariableCollection()
// Get All Variable Modes
const variableModes = await collection.getAllVariableModes()
console.log(variableModes)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny