@microsoft/fast-element > BindingDirective
BindingDirective class
A directive that configures data binding to element content and attributes.
Signature:export declare class BindingDirective extends Directive
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(binding) | Creates an instance of BindingDirective. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
binding | Binding | ||
createPlaceholder | (index: number) => string | Creates a placeholder string based on the directive's index within the template. | |
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. |