@microsoft/fast-foundation > DefaultComponentPresentation
DefaultComponentPresentation class
The default implementation of ComponentPresentation, used by FoundationElement.
Signature:export declare class DefaultComponentPresentation implements ComponentPresentation
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(template, styles) | Creates an instance of DefaultComponentPresentation. |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| styles | ElementStyles | null | The styles to apply to the element. | |
| template | ElementViewTemplate | null | The template to apply to the element. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| applyTo(element) | Applies the presentation details to the specified element. |