Open aalopatin opened 4 years ago
Hey @aalopatin That makes sense. The current implementation of the vue-tabulator only handles the v-model to creating the Tabulator instance. As a workaround, you can use the movableRowsReceived callback to handle that data transition.
I will see how to fix that, let me know if you have any suggestions.
Thank for your issue report
See you Rogerio
Hey @angeliski I install Tabulator Manually. I've found next: Reactivity doesn't work:
But if I look at tabulator instance:
this.tabulator.getData()
or when using your component:
this.$refs.tabulator.getInstance().getData()
All changes are present in the Data.
So I have solved these problems as follows:
Moving between tables - I use movableRowsReceiver
movableRowsReceiver:(fromRow, toRow, fromTable)=>{
this.receiverData.push(fromRow.getData())
},
Moving inside table - I use rowMoved:
rowMoved:(row) => {
this.receiverData = this.tabulatorReceiver.getData()
},
tabulatorReceiver is a holder of Tabulator (or instance in your component).
Maybe it will help you.
I reworked the second example, right:
rowMoved:(row) => {
let count = this.receiverData.length
let newData = this.tabulatorReceiver.getData()
this.receiverData.splice(0, count)
newData.forEach((newRow)=>{
this.receiverData.push(newRow)
})
},
Hello!
I've made movable tables.
Here is part of my template:
Here are options dor these tables:
When I move rows between tables they are shown in the receiver. But they aren't shown in data of Vue