Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pbarth
Genome-viewer
Commits
c88a9dd5
Commit
c88a9dd5
authored
Oct 28, 2018
by
Maike Weber
Browse files
default value gray, can get color as variable from genome vuer
parent
2a21216b
Changes
1
Hide whitespace changes
Inline
Side-by-side
genome-vuer/src/js/lane.js
View file @
c88a9dd5
Vue
.
component
(
"
lane
"
,{
template
:
`
<svg :height="height" :x="x" :y="y">
<line :x1="x+10" :y1="height/2" :x2="width" :y2="height/2" stroke="
#39FF14
" stroke-width="2" stroke-dasharray="20, 5" />
<svg :height="height" :x="x" :y="y"
:stroke="color"
>
<line :x1="x+10" :y1="height/2" :x2="width" :y2="height/2"
:
stroke="
color
" stroke-width="2" stroke-dasharray="20, 5" />
</svg>
`
,
props
:
{
...
...
@@ -26,6 +26,9 @@ Vue.component("lane",{
return
true
}
},
color
:
{
default
:
'
#222222
'
},
},
methods
:
{
my_method
(){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment