Currently, I am utilizing VUE and I must say, boostrap-table is performing admirably!
Within my component, I have the following:
<BootstrapTable :columns="table.columns" :data="table.data" :options="table.options"></BootstrapTable>
The table is being populated by axios with no issues.
However, I am encountering difficulties when attempting to update the table with calculated data obtained via axios. I am curious if there are any "best practices" for achieving this. Essentially, I aim to create a custom link in the first column using the id received from axios, while also making use of the vue router.
Upon receiving the axios data, I create a custom array newData and proceed to update the table using:
this.$nextTick(function () { this.table.data = newData });
The array includes a custom link like
link: '<a v-bind:href="club/'+team.id+'">'+team.team+'</a>',
or
link: "<router-link :to=\"{'name': 'team',\'params\': { 'id':"+ team.id+" }}\">"+ team.team+"</router-link>",
However, this is displayed as plain text and is not rendered.
Presently, I have resorted to using:
link: "<a href='/club/" + team.id + "'>" + team.team + "</a>",
While this works, it inevitably reloads the entire page instead of utilizing the VUE router...
Any recommendations? Could the vue render() function be of assistance? If so, how?