-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reorganize demos * Rename height demo snippets
- Loading branch information
1 parent
301b356
commit 984000c
Showing
5 changed files
with
107 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<dom-module id="split-layout-height-demos"> | ||
<template> | ||
<style include="vaadin-component-demo-shared-styles"> | ||
:host { | ||
display: block; | ||
} | ||
</style> | ||
|
||
|
||
<h3>Fixed Height</h3> | ||
<vaadin-demo-snippet id="split-layout-height-demos-height-fixed-height"> | ||
<template preserve-content> | ||
<vaadin-split-layout style="height: 200px;"> | ||
<div>First content element</div> | ||
<div>Second content element</div> | ||
</vaadin-split-layout> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
<h3>Relative Height</h3> | ||
<vaadin-demo-snippet id="split-layout-height-demos-height-relative-height"> | ||
<template preserve-content> | ||
<div style="height: 200px;"> | ||
<vaadin-split-layout style="height: 100%;"> | ||
<div>First</div> | ||
<div>Second</div> | ||
</vaadin-split-layout> | ||
</div> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
<h3>Flexbox Layout</h3> | ||
<vaadin-demo-snippet id="split-layout-height-demos-height-flexbox-layout"> | ||
<template preserve-content> | ||
<div style="height: 160px; display: flex;"> | ||
<vaadin-split-layout style="flex: 1;"> | ||
<div>First</div> | ||
<div>Second</div> | ||
</vaadin-split-layout> | ||
</div> | ||
</template> | ||
</vaadin-demo-snippet> | ||
|
||
|
||
</template> | ||
<script> | ||
class SplitLayoutHeightDemos extends DemoReadyEventEmitter(SplitLayoutDemo(Polymer.Element)) { | ||
static get is() { | ||
return 'split-layout-height-demos'; | ||
} | ||
} | ||
customElements.define(SplitLayoutHeightDemos.is, SplitLayoutHeightDemos); | ||
</script> | ||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters