Vue.js example: A sortable table made using a JSON object.
We define the JSON object in the Vue App (list). The object has several attributes which are added as columns. The data is dynamic: if you change the JSON data, the table data will change.
We create a table like this:
The table data is defined as a simple JSON object:
var list = [
Changing the JSON object (list) will change the actual table.
Then the complete code creates a sortable vue.js table.