We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e333b7f + 50c7760 commit 2fd50c3Copy full SHA for 2fd50c3
src/components/LTooltip.vue
@@ -9,6 +9,13 @@ import { tooltip, DomEvent } from 'leaflet';
9
export default {
10
name: 'LTooltip',
11
mixins: [Popper, Options],
12
+ props: {
13
+ options: {
14
+ type: Object,
15
+ custom: true,
16
+ default: () => ({}),
17
+ },
18
19
mounted() {
20
const options = optionsMerger(this.popperOptions, this);
21
this.mapObject = tooltip(options);
@@ -38,6 +45,13 @@ export default {
38
45
}
39
46
40
47
},
48
+ methods: {
49
+ setOptions(newVal) {
50
+ this.parentContainer.mapObject
51
+ .unbindTooltip()
52
+ .bindTooltip(this.mapObject, newVal);
53
54
41
55
};
42
56
</script>
43
57
0 commit comments