Skip to content

Commit d9f0664

Browse files
committed
Update README
1 parent d04b74a commit d9f0664

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,32 @@ User options menu icon can be customized using the #menuIcon slot:
676676
</template>
677677
```
678678

679+
Since version 3.5.1, slots are exposed to customize the chart annotator sub-menu:
680+
681+
```html
682+
<VueUiXy :dataset="dataset" :config="config">
683+
<template #annotator-action-close>
684+
<MyCloseIcon />
685+
</template>
686+
<template #annotator-action-color="{ color }">
687+
<MyColorIcon :color="color" />
688+
</template>
689+
<template #annotator-action-draw="{ mode }">
690+
<MyDrawIcon v-if="mode === 'draw'" />
691+
<MyTextIcon v-else />
692+
</template>
693+
<template #annotator-action-undo="{ disabled }">
694+
<MyUndoIcon />
695+
</template>
696+
<template #annotator-action-redo="{ disabled }">
697+
<MyRedoIcon />
698+
</template>
699+
<template #annotator-action-delete="{ disabled }">
700+
<MyDeleteIcon />
701+
</template>
702+
</VueUiXy>
703+
```
704+
679705
# Custom palette
680706

681707
It is possible to provide a custom palette in the config prop through config.customPalette (string[]) for the following components:

0 commit comments

Comments
 (0)