@microsoft/fast-foundation > FoundationElement > compose
FoundationElement.compose() method
Defines an element registry function with a set of element definition defaults.
Signature:static compose<T extends FoundationElementDefinition = FoundationElementDefinition, K extends Constructable<FoundationElement> = Constructable<FoundationElement>>(this: K, elementDefinition: T): (overrideDefinition?: OverrideFoundationElementDefinition<T>) => FoundationElementRegistry<T, K>;
Parameters
Parameter | Type | Description |
---|---|---|
this | K | |
elementDefinition | T | The definition of the element to create the registry function for. |
(overrideDefinition?: OverrideFoundationElementDefinition<T>) => FoundationElementRegistry<T, K>