File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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
681707It is possible to provide a custom palette in the config prop through config.customPalette (string[ ] ) for the following components:
You can’t perform that action at this time.
0 commit comments