-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-button-link.html
45 lines (44 loc) · 1.4 KB
/
demo-button-link.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
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../content-editor/content-editor.html">
<link rel="import" href="../paper-button/paper-button.html">
<dom-module id="demo-button-link">
<template>
<style>
:host {
padding: 0 50px;
}
paper-button {
background-color: cadetblue;
}
</style>
<div class="button-link-container" is-content="attr" page-link$="[[src]]" content-id="link-url" content-attr="src">
<paper-button on-click="_handleClick" is-content="inline" content-id="label" raised>text for button-link</paper-button>
</div>
</template>
<script>
Polymer({
is: 'demo-button-link',
properties: {
src: {
type: String,
value: '',
notify: true
},
usercontent: {
type: Object,
notify: true,
reflectToAttribute: false
}
},
behaviors: [
ContentEditorBehavior
],
_handleClick: function() {
this.fire('iron-signal', {
name: 'pancake-player-route-changed',
data: this.src
});
}
});
</script>
</dom-module>