vuetable-2-tutorial icon indicating copy to clipboard operation
vuetable-2-tutorial copied to clipboard

Having trouble displaying DetailRow

Open xingfanxia opened this issue 7 years ago • 3 comments

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

xingfanxia avatar Jan 23 '18 09:01 xingfanxia

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

xingfanxia avatar Jan 23 '18 09:01 xingfanxia

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

ratiw avatar Jan 26 '18 10:01 ratiw

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.

raimi6 avatar Aug 30 '18 13:08 raimi6