Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add html as optional parameter to calendar marker's tooltips #156

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

machinaeXphilip
Copy link

helps to style the tooltips of markers by using html parameter instead of text when adding markers

e.g.

 const markers = ref([
         
          {
            date: new Date(),
            type: 'line',
            tooltip: [
              { html: 'First tooltip <br> <b>fff</b>', color: 'blue' },
              { text: 'Second tooltip', color: 'yellow' },
            ],
          }
        ])

potential issue: depending on where the data for the markers comes from, opens the code up for code injection.

@Jasenkoo Jasenkoo merged commit d8cfe85 into Vuepic:next Sep 29, 2022
@machinaeXphilip
Copy link
Author

thank you! Also for this awesome library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants