@microsoft/fast-element > ElementStyles
ElementStyles class
Represents styles that can be applied to a custom element.
Signature:
export declare class ElementStyles
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of ElementStyles. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
ReadonlyArray<HostBehavior<HTMLElement>> | null |
The behaviors associated with this set of styles. | |
|
|
Gets the StyleStrategy associated with these element styles. | ||
|
|
ReadonlyArray<ComposableStyles> | ||
|
|
boolean |
Indicates whether the DOM supports the adoptedStyleSheets feature. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Normalizes a set of composable style options. | |
|
|
Sets the default strategy type to use when creating style strategies. | |
|
Associates behaviors with this set of styles. | ||
|
Sets the strategy that handles adding/removing these styles for an element. |