Set variable mode on a style
style.setVariableMode(collection, mode, options?)
Apply a variable mode to a style. Each variable mode is associated with a variable collection. To apply a variable mode, you must provide the variable collection that belongs to the variable mode.
Syntax
Parameters
- collection: VariableCollection - The variable collection that belongs to the variable mode.
- mode: VariableMode - The variable mode to set.
- options?: BreakpointAndPseudo - The breakpoint and pseudo state for the style.
Returns
Promise<null
>
A Promise that resolves to null
.