@microsoft/fast-element > HTMLDirective

HTMLDirective variable

Instructs the template engine to apply behavior to a node.

Signature:

HTMLDirective: Readonly<{
    getForInstance: (object: any) => HTMLDirectiveDefinition<Constructable<HTMLDirective>> | undefined;
    getByType: (key: Function) => HTMLDirectiveDefinition<Constructable<HTMLDirective>> | undefined;
    define<TType extends Constructable<HTMLDirective>>(type: TType, options?: PartialHTMLDirectiveDefinition): TType;
    assignAspect(directive: Aspected, value?: string): void;
}>