Skip to content

Commit 9e8a6b8

Browse files
committed
added title to fixed hotspot
1 parent 5a0134b commit 9e8a6b8

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

Template/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</iv-toggle-hotspot>
3333
<iv-toggle-hotspot position='right' title='Toggle Hotspot'>
3434
</iv-toggle-hotspot>
35-
<iv-fixed-hotspot position='topright'>
35+
<iv-fixed-hotspot position='topright' title="Title">
3636
I am in a fixed hotspot
3737
</iv-fixed-hotspot>
3838
</template>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@impvis/components",
33

4-
"version": "1.4.3",
4+
"version": "1.4.4",
55

66

77
"license": "BSD-3-Clause",

src/layouts/Hotspotables/FixedHotspot.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="iv-hotspotable iv-fixed-hotspot">
33
<div class="hotspot-content" :class="[positionalClass('iv'),{'no-wasted-space':noWastedSpace},{'iv-transparent':transparent},{'iv-glass-effect':glass}]">
4+
<span v-if="title !== ''" class = "title-text">{{title}}</span>
45
<slot :setPosition="setPosition"> DEFAULT SLOT CONTENT. Position:{{position_}}</slot>
56
</div>
67
</div>
@@ -22,6 +23,11 @@ export default {
2223
glass:{
2324
type:Boolean,
2425
default:false
26+
},
27+
title:{
28+
type:String,
29+
required:false,
30+
default:""
2531
}
2632
},
2733
}
@@ -49,6 +55,12 @@ export default {
4955
width:auto;
5056
height:auto;
5157
}
58+
.title-text{
59+
text-align: center;
60+
margin-bottom: 7px;
61+
font-weight: bold;
62+
border-bottom-style:solid;
63+
}
5264
5365
}
5466

0 commit comments

Comments
 (0)