Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the current data in TableDataSource? #24

Open
CindyLulu opened this issue Sep 7, 2018 · 1 comment
Open

How to get the current data in TableDataSource? #24

CindyLulu opened this issue Sep 7, 2018 · 1 comment

Comments

@CindyLulu
Copy link

Currently there's no public attribute for us to get the current data in TableDataSource instance, right?
I check the source code of TableDataSource, it seems the data is stored in rowsSubject, could we change the rowsSubject to a public attribute? so that we can deal the logic with data rows in typescript files.

@irossimoline
Copy link
Owner

Hi @CindyLulu,

You can access datasourceSubject, which is an array with the data in the table.
Currently the is no outer access to rowsSubject, because that doesn't have to be displayed to outer classes, and it's private for abstraction purposes.

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

No branches or pull requests

2 participants