|
30 | 30 | </p> |
31 | 31 | </article> |
32 | 32 | </div> |
33 | | - <div class="tile is-parent"> |
| 33 | + <div class="tile is-parent is-vertical"> |
34 | 34 | <article class="tile is-child box"> |
35 | 35 | <h1 class="title">Form addons</h1> |
36 | 36 | <datepicker :inputClass="{ test: true }" :config="{ wrap: true }" readonly> |
37 | 37 | <a class="button" data-toggle><i class="fa fa-calendar"></i></a> |
38 | 38 | <a class="button" data-clear><i class="fa fa-close"></i></a> |
39 | 39 | </datepicker> |
40 | | - <h1 class="title">Inline or embedded calendar</h1> |
41 | | - <p class="control"> |
42 | | - <datepicker placeholder="Pick date and time" :config="{ inline: true }"></datepicker> |
43 | | - </p> |
| 40 | + </article> |
| 41 | + <article class="tile is-child box"> |
44 | 42 | <h1 class="title">Display week numbers</h1> |
45 | 43 | <p class="control"> |
46 | 44 | <datepicker placeholder="Enabled week numbers" :config="{ weekNumbers: true }"></datepicker> |
47 | 45 | </p> |
48 | 46 | </article> |
| 47 | + <article class="tile is-child box"> |
| 48 | + <h1 class="title">Date Range</h1> |
| 49 | + <p class="control"> |
| 50 | + <datepicker placeholder="Select a range" :config="{ mode: 'range' }"></datepicker> |
| 51 | + </p> |
| 52 | + </article> |
49 | 53 | </div> |
50 | 54 | </div> |
51 | 55 |
|
52 | 56 | <div class="tile is-ancestor"> |
53 | | - <div class="tile is-parent"> |
| 57 | + <div class="tile is-parent is-vertical"> |
54 | 58 | <article class="tile is-child box"> |
55 | | - <h1 class="title">DateTime or Time Picker</h1> |
| 59 | + <h1 class="title">Preload date and time</h1> |
56 | 60 | <p class="control"> |
57 | | - <datepicker placeholder="Pick date and time" :config="{ enableTime: true }"></datepicker> |
| 61 | + <!-- TODO: click out side cannot handle hidden input yet. Will fix this later. --> |
| 62 | + <datepicker placeholder="The real input is hidden :^)" :config="{ altInput: false, altFormat: 'F j, Y' }"></datepicker> |
| 63 | + <!-- <datepicker placeholder="The real input is hidden :^)" :config="{ altInput: true, altFormat: 'F j, Y' }"></datepicker> --> |
58 | 64 | </p> |
59 | 65 | <p class="control"> |
60 | | - <datepicker placeholder="24 hour time" :config="{ enableTime: true, time_24hr: true, dateFormat: 'Y-m-d H:i' }"></datepicker> |
| 66 | + <datepicker :config="{ defaultDate: '2016-03-01 03:30:00 -0300', enableTime: true }"></datepicker> |
61 | 67 | </p> |
62 | 68 | <p class="control"> |
63 | | - <datepicker placeholder="Pick date and time" :config="{ enableTime: true, enableSeconds: true, dateFormat: 'Y-m-d h:i:S K' }"></datepicker> |
| 69 | + <datepicker :config="{ defaultDate: '2016-12-27T16:16:22.585Z', enableTime: true }"></datepicker> |
| 70 | + </p> |
| 71 | + </article> |
| 72 | + <article class="tile is-child box"> |
| 73 | + <h1 class="title">UTC mode</h1> |
| 74 | + <p class="control"> |
| 75 | + <datepicker :config="{ utc: true, defaultDate: '2016-03-01 03:30:00 -0300', enableTime: true }"></datepicker> |
64 | 76 | </p> |
65 | 77 | <p class="control"> |
66 | | - <datepicker placeholder="Pick date and time" :config="{ enableTime: true, enableSeconds: true, noCalendar: true }" value="09:00:00"></datepicker> |
| 78 | + <datepicker :config="{ utc: true, defaultDate: '2016-12-27T16:16:22.585Z', enableTime: true }"></datepicker> |
67 | 79 | </p> |
68 | 80 | </article> |
69 | 81 | </div> |
70 | 82 | <div class="tile is-parent"> |
71 | 83 | <article class="tile is-child box"> |
72 | | - <h1 class="title">Preload date and time</h1> |
| 84 | + <h1 class="title">Inline or embedded calendar</h1> |
73 | 85 | <p class="control"> |
74 | | - <datepicker placeholder="The real input is hidden :^)" :config="{ altInput: true, altFormat: 'F j, Y' }"></datepicker> |
| 86 | + <datepicker placeholder="Pick date and time" :config="{ inline: true }"></datepicker> |
75 | 87 | </p> |
| 88 | + </article> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + |
| 92 | + <div class="tile is-ancestor"> |
| 93 | + <div class="tile is-parent is-vertical"> |
| 94 | + <article class="tile is-child box"> |
| 95 | + <h1 class="title">DateTime Picker</h1> |
76 | 96 | <p class="control"> |
77 | | - <datepicker :config="{ defaultDate: '2016-03-01 03:30:00 -0300', enableTime: true }"></datepicker> |
| 97 | + <datepicker placeholder="Pick date and time" :config="{ enableTime: true }"></datepicker> |
78 | 98 | </p> |
79 | 99 | <p class="control"> |
80 | | - <datepicker :config="{ defaultDate: '2016-12-27T16:16:22.585Z', enableTime: true }"></datepicker> |
| 100 | + <datepicker placeholder="24 hour time" :config="{ enableTime: true, time_24hr: true, dateFormat: 'Y-m-d H:i' }"></datepicker> |
81 | 101 | </p> |
82 | | - <h1 class="title">UTC mode</h1> |
83 | 102 | <p class="control"> |
84 | | - <datepicker :config="{ utc: true, defaultDate: '2016-03-01 03:30:00 -0300', enableTime: true }"></datepicker> |
| 103 | + <datepicker placeholder="Pick date and time" :config="{ enableTime: true, enableSeconds: true, dateFormat: 'Y-m-d h:i:S K' }"></datepicker> |
85 | 104 | </p> |
| 105 | + </article> |
| 106 | + <article class="tile is-child box"> |
| 107 | + <h1 class="title">Time Picker</h1> |
86 | 108 | <p class="control"> |
87 | | - <datepicker :config="{ utc: true, defaultDate: '2016-12-27T16:16:22.585Z', enableTime: true }"></datepicker> |
| 109 | + <datepicker placeholder="Pick time" :config="{ enableTime: true, enableSeconds: true, noCalendar: true }" value="09:00:00"></datepicker> |
88 | 110 | </p> |
89 | 111 | </article> |
90 | 112 | </div> |
91 | | - </div> |
92 | | - |
93 | | - <div class="tile is-ancestor"> |
94 | | - <div class="tile is-parent"> |
| 113 | + <div class="tile is-parent is-vertical"> |
95 | 114 | <article class="tile is-child box"> |
96 | 115 | <h1 class="title">Disable specific dates or date intervals</h1> |
97 | 116 | <p class="control"> |
|
101 | 120 | <datepicker placeholder="disabled September 6-9 & August 25-31 2016" :config="{ disable: [ { from : '2016-09-06', to : '2016-09-09' }, { from : '2016-08-25', to : '2016-08-31' } ], minDate: 'today', dateFormat: 'Y-m-d' }"></datepicker> |
102 | 121 | </p> |
103 | 122 | </article> |
104 | | - </div> |
105 | | - <div class="tile is-parent"> |
106 | 123 | <article class="tile is-child box"> |
107 | | - <h1 class="title">Setting options on the fly</h1> |
| 124 | + <h1 class="title">Setting options dynamically</h1> |
108 | 125 | <p class="control"> |
109 | 126 | <datepicker ref="checkIn" placeholder="Check-In Date" :config="{ minDate: new Date() }"></datepicker> |
110 | 127 | </p> |
|
0 commit comments