I am wondering how I take an existing (initial) v-data-table component whose :headers and :items props are populated, and then completely re-render the component with new data and new column headers? Is there a special update or destroy native Vue or Vuetify way to do this?
I want my UX to be: See initial table that is created on mount, choose new columns, click update, queue loader icon, table is re-rendered with new items and new headers.
Thanks in advance.
items
andheaders
are reactive, any change to them will trigger a re-render, accordingly. For the human eye, it's instant, so if you want to see a loader icon you'll need to display the loading icon before you perform the update, display it for as much as you think the update process should take and then hide it, updating the data. – tao