StyleTarget interface
@microsoft/fast-element > StyleTarget
StyleTarget interface
A node that can be targeted by styles.
Signature:
export interface StyleTarget extends Pick<Node, "getRootNode">
Extends: Pick<Node, "getRootNode">
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
CSSStyleSheet[] | (Optional) Stylesheets to be adopted by the node. |
Methods
Method | Description |
---|---|
Adds styles to the target by appending the styles. | |
Returns all element descendants of node that match selectors. | |
Removes styles from the target. |