@microsoft/fast-element > StyleTarget
StyleTarget interface
A node that can be targeted by styles.
Signature:export interface StyleTarget
Properties
Property | Type | Description |
---|---|---|
adoptedStyleSheets | CSSStyleSheet[] | Stylesheets to be adopted by the node. |
Methods
Method | Description |
---|---|
append(styles) | Adds styles to the target by appending the styles. |
prepend(styles) | Adds styles to the target by prepending the styles. |
querySelectorAll(selectors) | Returns all element descendants of node that match selectors. |
removeChild(styles) | Removes styles from the target. |