Dynamic table columns #1821
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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.checkbox
widget with all the columns and anInputs.table
wherethe 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?
Beta Was this translation helpful? Give feedback.
All reactions