ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

Having trouble displaying DetailRow #81

Open xingfanxia opened 6 years ago

xingfanxia commented 6 years ago

Hi, I am having trouble displaying detail row. I followed tutorial but skipped customized actions. Here are my related files. Archive.zip

xingfanxia commented 6 years ago

When I clicked the cell, nothing happened except for the console.log command defined in onCellClicked

ratiw commented 6 years ago

@xxf1995 Please put your code in GitHub repo. It's easier for me to look at the code without having to download it.

raimi6 commented 6 years ago

I had similar problem, had to change code https://github.com/ratiw/vuetable-2-tutorial/wiki/lesson-12

from onCellClicked (data, field, event) { console.log('cellClicked: ', field.name) this.$refs.vuetable.toggleDetailRow(data.id) } to onCellClicked ({data}) { this.$refs.vuetable.toggleDetailRow(data.id) },

my Data variable structure was different from example code.