Skip to content

Commit

Permalink
update dummy app
Browse files Browse the repository at this point in the history
  • Loading branch information
lozjackson committed Nov 6, 2016
1 parent 799f0fe commit 45a2e7e
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 8 deletions.
9 changes: 9 additions & 0 deletions tests/dummy/app/templates/date-picker.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@

{{code-snippet name="date-picker-advanced.hbs"}}

<h2>Properties</h2>

<ul>
<li>select</li>
<li>selectedDate</li>
<li>output</li>
<li>close</li>
</ul>

<hr>

<h2>select</h2>
Expand Down
18 changes: 15 additions & 3 deletions tests/dummy/app/templates/input-date.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@

{{code-snippet name="input-date-advanced.hbs"}}

<h2>Properties</h2>

<ul>
<li>value</li>
<li>displayFormat</li>
<li>format</li>
<li>setPositionByCursor</li>
<li>to</li>
<li>placeholder</li>
<li>disabled</li>
</ul>

<hr>

<h2>value</h2>
Expand Down Expand Up @@ -147,7 +159,7 @@

<hr>

<h2>Destination element</h2>
<h2>to</h2>

<p>
The date picker can be rendered into another DOM element
Expand All @@ -167,7 +179,7 @@
{{code-snippet name="input-date-destinationElementId.hbs"}}

{{! BEGIN-SNIPPET input-date-destinationElementId }}
{{input-date destinationElementId="date-picker-container"}}
{{input-date to="date-picker-container"}}
{{! END-SNIPPET }}

<p>This will position the date picker at the bottom/left corner of the destination element specified.</p>
Expand All @@ -180,7 +192,7 @@
{{code-snippet name="input-date-position-by-cursor.hbs"}}

{{! BEGIN-SNIPPET input-date-position-by-cursor }}
{{input-date setPositionByCursor=true destinationElementId="date-picker-container"}}
{{input-date setPositionByCursor=true to="date-picker-container"}}
{{! END-SNIPPET }}

<p>
Expand Down
21 changes: 18 additions & 3 deletions tests/dummy/app/templates/input-time.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@

{{code-snippet name="input-time-advanced.hbs"}}

<h2>Properties</h2>

<ul>
<li>value</li>
<li>displayFormat</li>
<li>pickerDisplayFormat</li>
<li>format</li>
<li>timeInterval</li>
<li>setPositionByCursor</li>
<li>to</li>
<li>scrollToSelectedTime</li>
<li>placeholder</li>
<li>disabled</li>
</ul>

<hr>

<h2>value</h2>
Expand Down Expand Up @@ -177,7 +192,7 @@

<hr>

<h2>Destination element</h2>
<h2>to</h2>

<p>
The time picker can be rendered into another DOM element
Expand All @@ -197,7 +212,7 @@
{{code-snippet name="input-time-destinationElementId.hbs"}}

{{! BEGIN-SNIPPET input-time-destinationElementId }}
{{input-time destinationElementId="time-picker-container"}}
{{input-time to="time-picker-container"}}
{{! END-SNIPPET }}

<p>This will position the time picker at the bottom/left corner of the destination element specified.</p>
Expand All @@ -210,7 +225,7 @@
{{code-snippet name="input-time-position-by-cursor.hbs"}}

{{! BEGIN-SNIPPET input-time-position-by-cursor }}
{{input-time setPositionByCursor=true destinationElementId="time-picker-container"}}
{{input-time setPositionByCursor=true to="time-picker-container"}}
{{! END-SNIPPET }}

<p>
Expand Down
12 changes: 12 additions & 0 deletions tests/dummy/app/templates/time-picker.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@

{{code-snippet name="time-picker-advanced.hbs"}}

<h2>Properties</h2>

<ul>
<li>select</li>
<li>selectedTime</li>
<li>output</li>
<li>displayFormat</li>
<li>timeInterval</li>
<li>scrollToSelectedTime</li>
<li>close</li>
</ul>

<hr>

<h2>select</h2>
Expand Down
5 changes: 4 additions & 1 deletion tests/dummy/snippets/input-date-advanced.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
value=date
displayFormat='ddd DD/MM/YYYY'
format='date|timestamp|object|YYYY-MM-DD'
disabled=true}}
setPositionByCursor=true|false
to="elementId"
placeholder="Placeholder text..."
disabled=true|false}}
7 changes: 6 additions & 1 deletion tests/dummy/snippets/input-time-advanced.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
displayFormat='h:mm a'
pickerDisplayFormat='hh:mm a'
format='date|timestamp|object'
timeInterval=30}}
timeInterval=30
setPositionByCursor=true|false
to="elementId"
scrollToSelectedTime=true|false
placeholder="Placeholder text..."
disabled=true|false}}

0 comments on commit 45a2e7e

Please sign in to comment.