Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
623 stars 103 forks source link

Hover preview not working #38

Open TDebono opened 2 years ago

TDebono commented 2 years ago

Hey!

I noticed that the hover preview is not working for me. I tried replicating the examples provided in the example vault in my own vault, but for none of them the hover preview is working.

Are you aware of anything that could be preventing the hover preview from working properly?

Thanks!

Morekon commented 2 years ago

Hi I recently started using this plugin and also had the same issue at the beginning. Is it possible that you simply forgot to set the content?

calendarData.entries.push({
        date: page.file.name,
        intensity: 100,
        content: await dv.span(`[](${page.file.name})`),
})
rossoj85 commented 1 year ago

I am having the same issue. When I put in the code above, it returning the actual string

image
rossoj85 commented 1 year ago

Got it working using this code:

image
darkmarcos commented 10 months ago

It's still not working here.

Bsaubolle commented 8 months ago

This isn't working for me, either.

HufferDavid commented 8 months ago

Any resolution? I can get the full page to respond to the hover when using this syntax:

content: dv.span([[${page.file.name}|]]),

but when i use the syntax in the documentation the content is rendered in the visual as though renderHeatmapCalendar function is not handling the content attribute as a tooltip, but rather as direct text to be displayed.