@microsoft/fast-element > PartialFASTElementDefinition
PartialFASTElementDefinition interface
Represents metadata configuration for a custom element.
Signature:
export interface PartialFASTElementDefinition<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
(AttributeConfiguration | string)[] |
(Optional) The custom attributes of the custom element. | |
|
|
ElementDefinitionOptions |
(Optional) Options controlling how the custom element is defined with the platform. | |
|
|
(Optional) Lifecycle callbacks for template events. | ||
|
|
string |
The name of the custom element. | |
|
|
CustomElementRegistry |
(Optional) The registry to register this component in by default. | |
|
|
(Optional) The optional schema associated with the custom element definition. Declarative templates assign this automatically during template resolution. Non-declarative callers can provide one for schema-driven extensions. | ||
|
|
Partial<ShadowRootOptions> | null |
(Optional) Options controlling the creation of the custom element's shadow DOM. | |
|
|
(Optional) The styles to associate with the custom element. | ||
|
|
ElementViewTemplate<InstanceType<TType>> | FASTElementTemplateResolver<TType> |
(Optional) The template, or template resolver, for the custom element. |