style.removeAllProperties()
style.removeAllProperties()
Remove all style properties from a Style.
Syntax
style.removeAllProperties(): Promise<void>
Returns
Promise<null
>
A promise that resolves to null
Example
// Retrieve the style by name
const retrievedStyle = await webflow.getStyleByName(styleName);
// Clear Style Properties
await retrievedStyle?.removeAllProperties()
Designer Ability
Designer Ability | Locale | Branch | Workflow | Sitemode |
---|---|---|---|---|
canModifyStyleBlocks | Any | Any | Canvas | Design |