angular4-material-table icon indicating copy to clipboard operation
angular4-material-table copied to clipboard

How to get the current data in TableDataSource?

Open CindyLulu opened this issue 6 years ago • 1 comments

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.

CindyLulu avatar Sep 07 '18 01:09 CindyLulu

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.

irossimoline avatar Sep 16 '18 17:09 irossimoline