Skip to main content
Version: 1.x

@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

ParameterTypeDescription
thisK
elementDefinitionTThe definition of the element to create the registry function for.
Returns:

(overrideDefinition?: OverrideFoundationElementDefinition<T>) => FoundationElementRegistry<T, K>