Skip to content

Commit 66fcabd

Browse files
committed
#7123 adjusting all examples related twoWay bindings to the new syntax
1 parent bac031f commit 66fcabd

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/stateProvider/inline/MainContainer.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class MainContainer extends Viewport {
8888
width : 300,
8989

9090
bind: {
91-
value: {twoWay: true, value: data => data.button1Text}
91+
value: {key: 'button1Text', twoWay: true}
9292
}
9393
}, {
9494
module : TextField,

examples/stateProvider/twoWay/MainContainer.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MainContainer extends Viewport {
4949
width : 300,
5050

5151
bind: {
52-
value: {twoWay: true, value: data => data.user.details.firstname}
52+
value: {key: 'user.details.firstname', twoWay: true}
5353
},
5454
}, {
5555
module : TextField,
@@ -59,7 +59,7 @@ class MainContainer extends Viewport {
5959
width : 300,
6060

6161
bind: {
62-
value: {twoWay: true, value: data => data.user.details.lastname}
62+
value: {key: 'user.details.lastname', twoWay: true}
6363
},
6464
}],
6565
/**

examples/treeAccordion/MainContainer.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MainContainer extends ConfigurationViewport {
113113
items : [{
114114
module: AccordionTree,
115115

116-
bind: {selection: {twoWay: true, value: data => data.selection}},
116+
bind: {selection: {key: 'selection', twoWay: true}},
117117

118118
store: store,
119119

0 commit comments

Comments
 (0)