Skip to main content

@microsoft/fast-element > BindingBehavior > (constructor)

BindingBehavior.(constructor)

Creates an instance of BindingBehavior.

Signature:
constructor(target: any, binding: Binding, isBindingVolatile: boolean, bind: typeof normalBind, unbind: typeof normalUnbind, updateTarget: typeof updatePropertyTarget, targetName?: string);

Parameters

ParameterTypeDescription
targetanyThe target of the data updates.
bindingBindingThe binding that returns the latest value for an update.
isBindingVolatilebooleanIndicates whether the binding has volatile dependencies.
bindtypeof normalBindThe operation to perform during binding.
unbindtypeof normalUnbindThe operation to perform during unbinding.
updateTargettypeof updatePropertyTargetThe operation to perform when updating.
targetNamestringThe name of the target attribute or property to update.