@@ -88,9 +88,9 @@ <h3>Code</h3>
88
88
// JavaScript
89
89
$scope.example2model = [];
90
90
$scope.example2data = [
91
- {id: 1, label: "David"},
92
- {id: 2, label: "Jhon"},
93
- {id: 3, label: "Danny"}];
91
+ {id: 1, label: "David"},
92
+ {id: 2, label: "Jhon"},
93
+ {id: 3, label: "Danny"}];
94
94
$scope.example2settings = {displayProp: 'id'};</ div >
95
95
</ div >
96
96
</ div >
@@ -135,10 +135,10 @@ <h3>Code</h3>
135
135
// JavaScript
136
136
$scope.example3model = [];
137
137
$scope.example3data = [
138
- {id: 1, label: "David"},
139
- {id: 2, label: "Jhon"},
140
- {id: 3, label: "Danny"},
141
- {id: 4, label: "Danny"}];
138
+ {id: 1, label: "David"},
139
+ {id: 2, label: "Jhon"},
140
+ {id: 3, label: "Danny"},
141
+ {id: 4, label: "Danny"}];
142
142
$scope.example3settings = {displayProp: 'label', idProp: 'label'};</ div >
143
143
</ div >
144
144
</ div >
@@ -180,9 +180,9 @@ <h3>Code</h3>
180
180
// JavaScript
181
181
$scope.example4model = [];
182
182
$scope.example4data = [
183
- {id: 1, label: "David"},
184
- {id: 2, label: "Jhon"},
185
- {id: 3, label: "Danny"}];
183
+ {id: 1, label: "David"},
184
+ {id: 2, label: "Jhon"},
185
+ {id: 3, label: "Danny"}];
186
186
$scope.example4settings = {displayProp: 'label', idProp: 'id', externalIdProp: 'myCustomPropertyForTheObject'};</ div >
187
187
</ div >
188
188
</ div >
@@ -222,9 +222,9 @@ <h3>Code</h3>
222
222
// JavaScript
223
223
$scope.example5model = [];
224
224
$scope.example5data = [
225
- {id: 1, label: "David"},
226
- {id: 2, label: "Jhon"},
227
- {id: 3, label: "Danny"}];
225
+ {id: 1, label: "David"},
226
+ {id: 2, label: "Jhon"},
227
+ {id: 3, label: "Danny"}];
228
228
$scope.example5settings = {defaultText: 'Select Users'};</ div >
229
229
</ div >
230
230
</ div >
@@ -265,9 +265,9 @@ <h3>Code</h3>
265
265
// JavaScript
266
266
$scope.example6model = [{id: 1}, {id: 3}];
267
267
$scope.example6data = [
268
- {id: 1, label: "David"},
269
- {id: 2, label: "Jhon"},
270
- {id: 3, label: "Danny"}];
268
+ {id: 1, label: "David"},
269
+ {id: 2, label: "Jhon"},
270
+ {id: 3, label: "Danny"}];
271
271
$scope.example6settings = {};</ div >
272
272
</ div >
273
273
</ div >
@@ -310,9 +310,9 @@ <h3>Code</h3>
310
310
// JavaScript
311
311
$scope.example7model = [];
312
312
$scope.example7data = [
313
- {id: 1, label: "David"},
314
- {id: 2, label: "Jhon"},
315
- {id: 3, label: "Danny"}];
313
+ {id: 1, label: "David"},
314
+ {id: 2, label: "Jhon"},
315
+ {id: 3, label: "Danny"}];
316
316
$scope.example7settings = {externalIdProp: ''};</ div >
317
317
</ div >
318
318
</ div >
0 commit comments