You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui/core/bindable.d.ts
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,27 @@
17
17
* True to establish a two-way binding, false otherwise. A two-way binding will synchronize both the source and the target property values regardless of which one initiated the change.
18
18
*/
19
19
twoWay?: boolean;
20
+
/**
21
+
* An expression used for calculations (convertions) based on the value of the property.
22
+
*/
23
+
expression?: string;
24
+
}
25
+
26
+
/**
27
+
* An interface which defines methods need to create binding value converter.
28
+
*/
29
+
exportinterfaceValueConverter{
30
+
/**
31
+
* A method that will be executed when a value (of the binding property) should be converted to the observable model.
32
+
* For example: user types in a text field, but our business logic requires to store data in a different manner (e.g. in lower case).
33
+
* @param params - An array of parameters where first element is the value of the property and next elements are parameters send to converter.
34
+
*/
35
+
toModel: (...params: any[])=>any;
36
+
/**
37
+
* A method that will be executed when a value should be converted to the UI view. For example we have a date object which should be displayed to the end user in a specific date format.
38
+
* @param params - An array of parameters where first element is the value of the property and next elements are parameters send to converter.
0 commit comments