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

Interactive tables / charts #141

Open
KRE-DSS opened this issue Nov 10, 2023 · 1 comment
Open

Interactive tables / charts #141

KRE-DSS opened this issue Nov 10, 2023 · 1 comment

Comments

@KRE-DSS
Copy link

KRE-DSS commented Nov 10, 2023

Hi,

is there a good way to make tables an charts interactive? I've tried to use [[@input]] within table cells and the user input is displayed in the table and the chart updates ... so far so good. Unfortunately there are now the [check] and [answer] buttons under the table. Working with text input [___] doesn't render.

Any solutions?
Thanks.

@andre-dietrich
Copy link
Member

@KRE-DSS ... in general you can use scripts for this purpose. We changed their behavior slightly, so that you can directly combine them with HTML inputs of different types. You can read about their usage in the docs at JavaScript or JS-Components...

I hope you had something in mind as shown in the video?

interactivetable.mp4

The idea is, that a script can define the output of a cell, and you can also combine or react onto outputs from different cells by using "@input(`id`)" ... every time one of the input changes, the script is reevaluated. You can try this example here

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

No branches or pull requests

2 participants