-
Notifications
You must be signed in to change notification settings - Fork 0
/
bound-form-tests.html
28 lines (24 loc) · 1.04 KB
/
bound-form-tests.html
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
<template name="simpleBoundForm">
{{#BoundForm document=document}}
<input type="text" name="foo">
<input type="text" name="bar.baz">
<input type="text" name="one.two.three">
{{/BoundForm}}
</template>
<template name="formWithTypes">
{{#BoundForm document=document}}
<input type="checkbox" name="on" data-type="Boolean" checked>
<input type="checkbox" name="off" data-type="Boolean">
<input type="checkbox" name="tags" data-type="Array" value="first" checked>
<input type="checkbox" name="tags" data-type="Array" value="second" checked>
<input type="checkbox" name="tags" data-type="Array" value="third">
<input type="checkbox" name="tags" data-type="Array" value="fourth" checked>
<input type="checkbox" name="tags" data-type="Array" value="fifth">
<input type="checkbox" name="empty" data-type="Array" value="empty">
{{/BoundForm}}
</template>
<template name="formWithInitial">
{{#BoundForm document=document initial=initial}}
<input type="text" name="foo.bar">
{{/BoundForm}}
</template>