forked from rstropek/Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMvvmTypescriptSample.html
More file actions
52 lines (45 loc) · 2.13 KB
/
Copy pathMvvmTypescriptSample.html
File metadata and controls
52 lines (45 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MVVM Demo</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Get style sheets from kendo's CDN
In this example we use the Twitter Bootstrap theme. -->
<!-- CDN sources
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.common-bootstrap.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.bootstrap.min.css" rel="stylesheet" />
-->
<!-- Local sources -->
<link href="Content/KendoUICore/kendo.common-bootstrap.min.css" rel="stylesheet" />
<link href="Content/KendoUICore/kendo.bootstrap.min.css" rel="stylesheet" />
<link href="Samples.css" rel="stylesheet" />
<!-- Get scripts from kendo's CDN
Note that we get JQuery from kendo's CDN, too, to always get a compatible version. -->
<!-- CDN sources
<script src="http://cdn.kendostatic.com/2014.1.528/js/jquery.min.js"></script>
<script src="http://cdn.kendostatic.com/2014.1.528/js/kendo.ui.core.min.js"></script>
-->
<!-- Local sources -->
<script src="Scripts/KendoUICore/jquery.min.js"></script>
<script src="Scripts/KendoUICore/kendo.ui.core.min.js"></script>
<script src="MvvmTypescriptSample.js"></script>
</head>
<body>
<form id="registrationForm">
<!-- Note that we bind the list of available values as well as the selected value -->
<label for="salutation">Salutation:</label>
<input id="salutation" data-bind="source: availableSalutations, value: salutation" />
<!-- Simple binding to "value" -->
<label for="name">Name:</label>
<input type="text" id="name" class="form-control" data-bind="value: name" />
<!-- Binding using a date picker -->
<label for="birthday">Birthday:</label>
<input id="birthday" data-bind="value: birthday" />
<p>So you are <span data-bind="text: age()"></span> year(s) old.</p>
<!-- Note that we bind the "enabled" state as well as the click handler -->
<button id="register" type="button" class="register"
data-bind="enabled: isValid, click: register">Register</button>
</form>
<script src="MvvmTypescriptSample.js"></script>
</body>
</html>