@microsoft/fast-element > HTMLBindingDirective

HTMLBindingDirective class

A directive that applies bindings.

Signature:

export declare class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory, ViewBehavior, Aspected, BindingDirective 

Implements: HTMLDirective, ViewBehaviorFactory, ViewBehavior, Aspected, BindingDirective

Constructors

Constructor

Modifiers

Description

(constructor)(dataBinding)

Creates an instance of HTMLBindingDirective.

Properties

Property

Modifiers

Type

Description

aspectType

DOMAspect

The type of aspect to target.

dataBinding

Binding

id

string

The unique id of the factory.

policy

DOMPolicy

The policy that the created behavior must run under.

sourceAspect

string

The original source aspect exactly as represented in markup.

targetAspect

string

The evaluated target aspect, determined after processing the source.

targetNodeId

string

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

targetTagName

string | null

The tagname associated with the target node.

Methods

Method

Modifiers

Description

createBehavior()

Creates a behavior.

createHTML(add)

Creates HTML to be used within a template.