Get style properties
style.getProperties(options?)
Retrieves the CSS properties of the specified Style Object. See the style properties list for an index of CSS properties that can be set on a Style.
Syntax
Parameters
-
options: BreakpointAndPseudo (optional)
An object that lets you filter properties by breakpoint and/or pseudo-state.
-
BreakpointId
: Identifies the responsive breakpoint to get styles for. -
PseudoStateKey
: Specifies a CSS pseudo-class to get styles for.
-
Returns
Promise<PropertyMap>
A Promise that resolves to a PropertyMap object. A dictionary of style properties and their values.
Example
Designer Ability
Checks for authorization only