-
Notifications
You must be signed in to change notification settings - Fork 0
/
fretboard-string.html
56 lines (45 loc) · 1.39 KB
/
fretboard-string.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
56
<link rel="import" href="../@polymer/polymer/polymer-element.html">
<dom-module id="fretboard-string">
<template>
<style>
:host {
display: block;
}
</style>
<div>
</div>
</template>
<script>
/**
* `fretboard-string`
*
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class FretboardString extends Polymer.Element {
static get is() { return 'fretboard-string'; }
static get properties() {
return {
index : {
type : Number,
value : 0,
//notify: true, // dispatch property change events when the property value changes
//reflectToAttribute: true, // update the corresponding attribute when the property changes
},
tone : {
type : String,
value : 'C',
//notify: true,
//reflectToAttribute: true,
}
};
}
constructor() {
super();
}
}
window.customElements.define(FretboardString.is, FretboardString);
</script>
</dom-module>