Skip to content

Commit

Permalink
Merge 3e84f59 into 12a09b9
Browse files Browse the repository at this point in the history
  • Loading branch information
samiheikki authored Jul 4, 2018
2 parents 12a09b9 + 3e84f59 commit 286c201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 42 deletions.
4 changes: 2 additions & 2 deletions demo/demos.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Vaadin List Box",
"pages": [{
"name": "Examples",
"name": "Basics",
"url": "list-box-basic-demos",
"src": "list-box-basic-demos.html",
"meta": {
"title": "vaadin-list-box Basic Examples",
"description": "",
"image": ""
}
}
}]
}
46 changes: 6 additions & 40 deletions demo/list-box-basic-demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,20 @@
}
</style>

<h3>Basic Usage</h3>
<h3>List Box</h3>
<vaadin-demo-snippet id='list-box-basic-demos-basic'>
<template preserve-content>
<vaadin-list-box>
<vaadin-item>Item one</vaadin-item>
<vaadin-item>Item two</vaadin-item>
<vaadin-item>Item three</vaadin-item>
</vaadin-list-box>
</template>
</vaadin-demo-snippet>

<h3>Selected</h3>
<vaadin-demo-snippet id='list-box-basic-demos-selected'>
<template preserve-content>
<vaadin-list-box selected="1">
<vaadin-item>Item one</vaadin-item>
<vaadin-item>Item two</vaadin-item>
<vaadin-item>Item three</vaadin-item>
</vaadin-list-box>
</template>
</vaadin-demo-snippet>

<h3>Disabled</h3>
<vaadin-demo-snippet id='list-box-basic-demos-disabled'>
<template preserve-content>
<vaadin-list-box>
<vaadin-item>Item one</vaadin-item>
<vaadin-item disabled>Item two</vaadin-item>
<vaadin-item>Item three</vaadin-item>
</vaadin-list-box>
</template>
</vaadin-demo-snippet>

<h3>Arbitrary Content: Header and Separator</h3>
<vaadin-demo-snippet id='list-box-basic-demos-arbitrary'>
<template preserve-content>
<vaadin-list-box>
<b>Select an Item</b>
<vaadin-item>Item one</vaadin-item>
<vaadin-item>Item two</vaadin-item>
<b>Register to Run Event</b>
<vaadin-item>5k</vaadin-item>
<vaadin-item disabled>10k (sold out)</vaadin-item>
<hr>
<vaadin-item>Item three</vaadin-item>
<vaadin-item>Item four</vaadin-item>
<vaadin-item>Half marathon</vaadin-item>
<vaadin-item>Marathon</vaadin-item>
</vaadin-list-box>
</template>
</vaadin-demo-snippet>


</template>
<script>
class ListBoxBasicDemos extends DemoReadyEventEmitter(ListBoxDemo(Polymer.Element)) {
Expand Down

0 comments on commit 286c201

Please sign in to comment.