Skip to main content
Version: 2.x

HTMLDirective variable

@microsoft/fast-element > HTMLDirective

HTMLDirective variable

Instructs the template engine to apply behavior to a node.

Signature:

HTMLDirective: Readonly<&#123;
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;
&#125;>