Skip to content

Commit d8cfe85

Browse files
machinaeXphilipJasenkoo
authored andcommitted
add html as optional parameter to calendar tooltips
1 parent 366472c commit d8cfe85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/VueDatePicker/components/Calendar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
class="dp__tooltip_mark"
7676
:style="tooltip.color ? { backgroundColor: tooltip.color } : {}"
7777
></div>
78-
<div>{{ tooltip.text }}</div>
78+
<div v-if="tooltip.html" v-html="tooltip.html"></div>
79+
<div v-else>{{ tooltip.text }}</div>
7980
</template>
8081
</div>
8182
<div class="dp__arrow_bottom_tp"></div>

0 commit comments

Comments
 (0)