I’m working with the Datagrid in WeWeb and trying to implement a feature where users can dynamically choose which columns to display.
I see there’s a manual option to add columns in the Datagrid settings, but there’s also the possibility to bind the “Columns” property. However, I couldn’t find clear documentation or examples on what the expected JSON structure is for the binding.
Can anyone please share the correct JSON format to bind dynamic columns in the Datagrid component?
Ideally, I’d like to generate this array based on user input (e.g. checkboxes or a settings panel).
It would be nice to have the new components such as datagrid open sourced as all of the other components in the weweb-assets directory @Raphael, this way we could answer such questions.