-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexon-item.html
40 lines (37 loc) · 1 KB
/
exon-item.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
<link rel="import" href="exon-graphic.html">
<link rel="import" href="coding-exon-text.html">
<link rel="import" href="external-scripts.html">
<!--
`exon-item`
Exon item demo
@demo demo/exon-item-demo.html
-->
<dom-module id="exon-item">
<template>
<style>
:host{
display:flex;
}
#coding-exon-text {
padding-top: 1px;
padding-left: 6px;
}
</style>
<template is="dom-if" if="[[data]]">
<exon-graphic data="[[data]]" exon-width="[[exonWidth]]"></exon-graphic>
<template is="dom-if" if="[[data.firstAminoAcid]]">
<coding-exon-text id="coding-exon-text" data="[[data]]"></coding-exon-text>
</template>
</template>
</template>
<script>
Polymer({
is: 'exon-item',
properties: {
data: {
type: Object
}
}
});
</script>
</dom-module>