Skip to content

Commit 5506d32

Browse files
authored
Demo support. (#134)
1 parent aa66c05 commit 5506d32

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</head>
2121
<body>
2222

23-
<iron-component-page descriptor-url="analysis.json"></iron-component-page>
23+
<iron-component-page></iron-component-page>
2424

2525
</body>
2626
</html>

iron-component-page.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
display: none;
3131
}
3232

33-
iron-doc-viewer {
34-
margin: 20px 0 0 20px;
35-
max-width: 56em;
36-
}
37-
3833
app-header {
3934
@apply --paper-font-headline;
4035
color: white;
@@ -66,9 +61,12 @@
6661
#scroller {
6762
overflow-y: auto;
6863
height: calc(100vh - 64px);
64+
display: flex;
6965
}
7066

7167
iron-doc-viewer {
68+
flex-grow: 1;
69+
7270
--iron-doc-title: {
7371
display: none;
7472
}
@@ -123,6 +121,7 @@
123121
<iron-doc-viewer
124122
descriptor="[[_descriptor]]"
125123
base-href="[[baseHref]]"
124+
demo-src-prefix="[[demoSrcPrefix]]"
126125
title="{{_title}}"
127126
path="{{_path}}">
128127
</iron-doc-viewer>
@@ -156,6 +155,11 @@
156155
*/
157156
baseHref: String,
158157

158+
/**
159+
* URL prefix for demo iframes.
160+
*/
161+
demoSrcPrefix: String,
162+
159163
_loading: Boolean,
160164

161165
_error: Object,

0 commit comments

Comments
 (0)