Skip to main content
Version: 1.x

@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