Skip to main content

@microsoft/fast-element > HTMLDirective > createBehavior

HTMLDirective.createBehavior() method

Creates a behavior for the provided target node.

Signature:
abstract createBehavior(target: Node): Behavior;

Parameters

ParameterTypeDescription
targetNodeThe node instance to create the behavior for.
Returns:

Behavior