You are viewing documentation for a previous version of FAST. The latest version is 3.x. View latest docs →

@microsoft/fast-element > RefDirective

RefDirective class

The runtime behavior for template references.

Signature:

export declare class RefDirective extends StatelessAttachedAttributeDirective<string> 

Extends: StatelessAttachedAttributeDirective<string>

Properties

Property

Modifiers

Type

Description

targetNodeId

string

The structural id of the DOM node to which the created behavior will apply.

Methods

Method

Modifiers

Description

bind(controller)

Bind this behavior.