Implement table element #73
Replies: 2 comments 2 replies
-
oof.... just keep in mind tables and grids are the scourge of UI frameworks. I evaluated about four before eventually just using ag-grid via their vue wrapper. I could see the value of the VueformBuilder offering the ability to build and including a grid. Perhaps create a plugin interface that you can then have users install a grid plugin and expose it that way. Something like ag-grid-for-vueform module or something and then abstract the grid portions generically. I have seen tens of Millions invested by companies and huge teams in developing tables and grids..... Just be careful it doesn't suck you in! I did this in my project with a DataGridComponent that wraps a ag-grid (I could swap it out) and provides a simple properties map of rowData, columnDefs (which is my own model but largely mirrors ag-grid model), selectionData, etc. and it emits some simple events like selected, deselected and sortChanged. Any ag-grid stuff is entirely in that class only (even though I use my grid in ~10 other places) While this is specific to my app in theory the approach is adaptable: https://github.com/stamp-web/stamp-web-vuejs/blob/main/src/components/table/DataGridComponent.vue |
Beta Was this translation helpful? Give feedback.
-
I think it would be better to add a bit more details about a 'Table' element. In the Vueform context, I would imagine this is more like a layout element that helps position the components on a form? Is that what you are envisaging? |
Beta Was this translation helpful? Give feedback.
-
Implement table element
Beta Was this translation helpful? Give feedback.
All reactions