Is there a better way than using: Buttons + Dataview + Templater

What I’m trying to do

I’m trying to create a table (with days of the week) with JavaScript and HTML that takes tasks from a different file-note, and formats them into separate cells (only if the task date coincides with the day of the column). Then, using a button, I change the displayed elements in the table.

Things I have tried

I tried using Buttons + Dataview + Templater.
With buttons i call a Templater command that switches a variable in the current note (0 and 1), this variable is then read in a function called by a Dataviewjs block which format the given tasks in a html table.

Are there any alternatives?

Idk if my method is unnecessarily complex but it works fine.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.