-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo-setup-step.html
55 lines (54 loc) · 1.61 KB
/
demo-setup-step.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../content-editor/content-editor.html">
<dom-module id="demo-setup-step">
<template>
<link href="https://fonts.googleapis.com/css?family=Cabin+Sketch|Caveat|Pompiere" rel="stylesheet">
<style>
:host {
margin: 0;
padding: 50px;
display: block;
font-size: 30px;
font-family: 'Pompiere', cursive;
}
.image-container {
display: block;
text-align: center;
}
img {
max-width: 800px;
}
</style>
<div class="image-container">
<img src$="[[src]]" alt$="[[alt]]" is-content="attr" content-id="image-url" content-attr="src, alt">
</div>
<div is-content="wsywig" content-id="image-info">
<p>Setup Information</p>
</div>
</template>
<script>
Polymer({
is: 'demo-setup-step',
properties: {
src: {
type: String,
value: '',
notify: true
},
alt: {
type: String,
value: '',
notify: true
},
usercontent: {
type: Object,
notify: true,
reflectToAttribute: false
}
},
behaviors: [
ContentEditorBehavior
],
});
</script>
</dom-module>