Repository navigation
Dynamic table columns #1821
Unanswered
balazskosi
asked this question in
Q&A
Replies: 2 comments 6 replies
|
For a generic answer, you could pull in the runtime and use it to orchestrate the reactivity across as many variables as you want. If you only have a few checkboxes, it is probably lighter to add "vanilla" event listeners to your inputs. |
6 replies
|
Hi @balazskosi and @Fil. I've been wanting something similar, except with the addition of enabling a degree of editing and expansion for tables. Here's a demo. Here's the code itself FYI: @Fil, this was MADDENING to get to work. Curious to get your thoughts, but I have no idea how you and Mike do it. Straight code god saints.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi,
I want to create tables (using Inputs.table) where the columns visibility can be toggled by the user.
My approach is to create an
Inputs.checkboxwidget with all the columns and anInputs.tablewherethe columns of the table are based on the value of the checkbox widget.
I want to turn this into a function and what I am stuck on is:
How to make the table reactive to the checkboxes within the function?
Or more generally how can I emulate the reactivity of multiple code blocks in a single code block?
All reactions