@microsoft/fast-element > twoWay
twoWay() function
Creates a default binding.
Signature:
export declare function twoWay<T = any>(expression: Expression<T>, optionsOrChangeEvent?: TwoWayBindingOptions | string, policy?: DOMPolicy, isBindingVolatile?: boolean): Binding<T>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
expression |
Expression<T> |
The binding to refresh when changed. |
|
optionsOrChangeEvent |
TwoWayBindingOptions | string |
(Optional) The binding options or the name of the change event to use. |
|
policy |
DOMPolicy |
(Optional) The security policy to associate with the binding. |
|
isBindingVolatile |
boolean |
(Optional) Indicates whether the binding is volatile or not. |
Returns:
Binding<T>
A binding.