Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

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

Open
avinash403 opened this issue Aug 27, 2018 · 4 comments
Open

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

avinash403 opened this issue Aug 27, 2018 · 4 comments

Comments

@avinash403
Copy link

avinash403 commented Aug 27, 2018

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

@kenberkeley
Copy link
Collaborator

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

@avinash403
Copy link
Author

Didn't workout. Actually I have tried importing it both locally and globally after seeing this issue #9

but nothing helped till now

@kenberkeley
Copy link
Collaborator

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

@goraj
Copy link

goraj commented Sep 30, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants