Skip to main content
Version: 1.x

@microsoft/fast-foundation > DefaultComponentPresentation

DefaultComponentPresentation class

The default implementation of ComponentPresentation, used by FoundationElement.

Signature:
export declare class DefaultComponentPresentation implements ComponentPresentation 

Constructors

ConstructorModifiersDescription
(constructor)(template, styles)Creates an instance of DefaultComponentPresentation.

Properties

PropertyModifiersTypeDescription
stylesElementStyles | nullThe styles to apply to the element.
templateElementViewTemplate | nullThe template to apply to the element.

Methods

MethodModifiersDescription
applyTo(element)Applies the presentation details to the specified element.