Get style properties
style.getProperties(options?)
Retrieves the CSS properties of the specified Style Object. Additionally, you can get properties on a style for a specific breakpoint or pseudo-state.
See the style properties list for an index of CSS properties to set on a style.
Syntax
Parameters
-
options: An object that lets you filter properties by breakpoint and pseudo-state. (optional)
-
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