Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify basic demos #609

Merged
merged 2 commits into from
Nov 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions demo/date-picker-basic-demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,9 @@


<h3>Date picker</h3>
<vaadin-demo-snippet id="date-picker-basic-demos-plain-date-picker">
<template preserve-content>
<vaadin-date-picker></vaadin-date-picker>
</template>
</vaadin-demo-snippet>


<h3>Label attribute</h3>
<vaadin-demo-snippet id="date-picker-basic-demos-label-attribute">
<template preserve-content>
<vaadin-date-picker label="Pick a date">
</vaadin-date-picker>
</template>
</vaadin-demo-snippet>


<h3>Placeholder attribute</h3>
<vaadin-demo-snippet id="date-picker-basic-demos-placeholder-attribute">
<template preserve-content>
<vaadin-date-picker placeholder="Pick a date">
</vaadin-date-picker>
</template>
</vaadin-demo-snippet>


<h3>Label and placeholder attributes together</h3>
<vaadin-demo-snippet id="date-picker-basic-demos-label-and-placeholder-attributes-together">
<template preserve-content>
<vaadin-date-picker label="Birthday" placeholder="Pick a date">
<vaadin-date-picker label="Date" placeholder="Pick a date">
</vaadin-date-picker>
</template>
</vaadin-demo-snippet>
Expand Down Expand Up @@ -103,7 +77,7 @@ <h3>Date picker with week numbers</h3>
<p>Week numbers are only supported for locales that start the week on Monday.</p>
<vaadin-demo-snippet id="date-picker-basic-demos-date-picker-with-week-numbers">
<template preserve-content>
<vaadin-date-picker id="weeks" show-week-numbers></vaadin-date-picker>
<vaadin-date-picker id="weeks" show-week-numbers label="Date"></vaadin-date-picker>
<script>
window.addDemoReadyListener('#date-picker-basic-demos-date-picker-with-week-numbers', function(document) {
// Async call needed here for IE11 compatibility.
Expand Down Expand Up @@ -132,7 +106,7 @@ <h3>Keyboard input</h3>
"next week Thursday"
-->

<vaadin-date-picker label="Birthday" id="keyboard-input">
<vaadin-date-picker label="Date" id="keyboard-input">
</vaadin-date-picker>
<script>
window.addDemoReadyListener('#date-picker-basic-demos-keyboard-input', function(document) {
Expand Down