mode.getName()

Get the name of a variable mode

Syntax

1mode.getName(): Promise<string>

Returns

Promise<string>

A Promise that resolves to the name of the variable mode.

Example

1// Get Collection
2const collection = await webflow.getDefaultVariableCollection()
3
4// Get Variable Mode
5const variableMode = await collection?.getVariableModeById(modeId)
6
7// Get Variable Mode Name
8const name = await variableMode?.getName()
9console.log(name)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny
Built with