I've set up grid.js in Vue. https://github.com/grid-js/gridjs
I have set, autoWidth: true
and width: '100%'
in the config.
The data grid resizes (is responsive) when I resized the window.
But, if the window, or container element resizes larger than the initial size, the grid does not resize with it. It will however correctly resize smaller.
I then used element-resize-detector (https://github.com/wnr/element-resize-detector/) to watch for changes to the container element and call
grid.updateConfig(this.config).forceRender();
to redraw the grid to the new container sized. This works, but it causes problems with the column sorting.
I'm tinkering with code to get around this, but would like to know if someone has a good/better solution for this.