Replies: 4 comments 5 replies
-
You would need to generate a button block for each inline button. You could mark all those button blocks as |
Beta Was this translation helpful? Give feedback.
-
Can you give some more info on how you would do that? Not sure if it would work all that well tbh, especially since movie notes will be added/removed from this particular query based on their status so the hidden buttons would need to change frequently |
Beta Was this translation helpful? Give feedback.
-
You would need a second dataview query that generates the same results and use those results to generate the button blocks. I don't really have time to write an example for you. |
Beta Was this translation helpful? Give feedback.
-
This is also more a question, so I will convert this into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Is your Feature Request Related to a Problem?
So I've found this issue which has a solution for how a text field can affect a different note.
This also works in a dataviewjs query to change the metadata of the specific note, for example to change the rating of a movie. However I can't get the same to work with buttons, since they can't really be created inline at the moment? Or is there a way to do this that Im missing? Seems like you can only create the buttons outside of js and then there is no way to change the binding target depending on what element in the dataviewjs query you are on
Describe the Feature you'd Like
I would like to define an inline button in dataviewjs so that I can have something like a "complete" button
Additional Context
I guess using the toggle works alright as a workaround for the button, but the downside is that you cannot properly label it apart from the table heading, so you can't really have multiple toggles in a cell either since you won't know which one does what
Beta Was this translation helpful? Give feedback.
All reactions