DataTable is not fit for working with vue. #2900
Unanswered
wijzijnweb
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The DataTable uses a column approach. That means that you can't have control over the row item it self in a stand-alone component.
In vue you usually create a component for the row, pass on the item.
In that component you have full control over the item.
Deleting it, editing or whatever else you need to do on that item without needing to push it as parameter to every function.
The only way to do that now seems to be passing on the field type.
And then handle everything with if's in the component.
But that creates unused code for a lot of column types.
I hope you might consider an alternative approach on this.
So that rows can be their own component.
Beta Was this translation helpful? Give feedback.
All reactions