@microsoft/fast-element > HTMLBindingDirective
HTMLBindingDirective class
A directive that configures data binding to element content and attributes.
Signature:export declare class HTMLBindingDirective extends TargetedHTMLDirective
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(binding) | Creates an instance of BindingDirective. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
binding | Binding | ||
targetName | string | undefined | Gets/sets the name of the attribute or property that this binding is targeting. |
Methods
Method | Modifiers | Description |
---|---|---|
createBehavior(target) | Creates the runtime BindingBehavior instance based on the configuration information stored in the BindingDirective. | |
targetAtContent() | Makes this binding target the content of an element rather than a particular attribute or property. |