TreeTable: Missing dataKey property #4273
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
current treeTable is hardcoded to use
key
property from dataset, which breaks usage of api endpoints, which useskey
property for different purposedataTable allows custom "key" property to be used
https://primevue.org/datatable/#api.datatable.props.dataKey
whereas treeTable doesn't, which requires to enrich api data with custom property just for specific component
it will also be incompatible with any api response, which uses "key" for another purpose
Reproducer
https://primevue.org/treetable/
PrimeVue version
3.32.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: