vue2-datatable icon indicating copy to clipboard operation
vue2-datatable copied to clipboard

tdComp is blank when data is passed at the time of mount

Open avinash403 opened this issue 7 years ago • 4 comments

Hi, I am using a components actions to display buttons in a column of the datatable. When I am passing data through an ajax call(which makes it wait for sometime before updating) everything works fine, but as soon as I am passing it directly into the data it shows blank.

Shows blank when passed like this: screen shot 2018-08-27 at 4 47 34 pm

but works fine when i put a setTimeout of say 1 sec before sending/updating the data

avinash403 avatar Aug 27 '18 11:08 avinash403

how about tdComp: require('path/to/DatatableActions')

kenberkeley avatar Aug 27 '18 11:08 kenberkeley

Didn't workout. Actually I have tried importing it both locally and globally after seeing this issue https://github.com/OneWayTech/vue2-datatable/issues/9

but nothing helped till now

avinash403 avatar Aug 27 '18 11:08 avinash403

would you mind providing an online demo (jsbin etc)? i cant reproduce myself

kenberkeley avatar Aug 27 '18 11:08 kenberkeley

This might work: tdComp: require('path/to/DatatableActions').default or eg. export default { Foo: require('./td-Foo').defaults }

goraj avatar Sep 30 '18 21:09 goraj