Skip to content

Commit 831217e

Browse files
committed
Updating knockout sample model and percent factor
1 parent e5de1b7 commit 831217e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

HTMLSamples/editors/bind-editors-with-ko.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
<body>
2323
<script type="text/javascript">
2424
var viewModel = {
25-
orderDate: ko.observable("10/24/2012"),
26-
shipDate: ko.observable("11/12/2012"),
25+
orderDate: ko.observable(new Date(2017, 0, 21)),
26+
shipDate: ko.observable(new Date(2017, 1, 15)),
2727
dueInDays: ko.observable(7),
2828
customerName: ko.observable("Peter Sanders"),
2929
contactPhone: ko.observable("318-555-6879"),
3030
advancePayment: ko.observable(516.89),
31-
discountPercent: ko.observable(8)
31+
discountPercent: ko.observable(0.08)
3232
};
3333

3434
$(function () {
@@ -171,7 +171,7 @@
171171
<!-- percent editor -->
172172
<div id="discountPercentIG" class="row-control" data-bind="igPercentEditor: {
173173
value: discountPercent,
174-
displayFactor : 1,
174+
displayFactor : 100,
175175
textAlign: 'right'
176176
}"></div>
177177
<input id="discountPercent" type="text" class="row-control" data-bind="value: discountPercent"></input>

0 commit comments

Comments
 (0)