@microsoft/fast-element > PartialFASTElementDefinition

PartialFASTElementDefinition interface

Represents metadata configuration for a custom element.

Signature:

export interface PartialFASTElementDefinition 

Properties

Property

Modifiers

Type

Description

attributes?

readonly

(AttributeConfiguration | string)[]

(Optional) The custom attributes of the custom element.

elementOptions?

readonly

ElementDefinitionOptions

(Optional) Options controlling how the custom element is defined with the platform.

lifecycleCallbacks?

readonly

TemplateLifecycleCallbacks

(Optional) Lifecycle callbacks for template events.

name

readonly

string

The name of the custom element.

registry?

readonly

CustomElementRegistry

(Optional) The registry to register this component in by default.

shadowOptions?

readonly

Partial<ShadowRootOptions> | null

(Optional) Options controlling the creation of the custom element's shadow DOM.

styles?

readonly

ComposableStyles | ComposableStyles[]

(Optional) The styles to associate with the custom element.

template?

readonly

ElementViewTemplate

(Optional) The template to render for the custom element.

templateOptions?

readonly

TemplateOptions

(ALPHA) (Optional) Options controlling how the template will be created.