[Table] Expose paginated data on MatTableDataSource
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
#### Bug, feature request, or proposal:
feature request
#### What is the expected behavior?
`MatTableDataSource` should provide a method to get currently rendered data which is filtered, sorted and paginated.
#### What is the current behavior?
At the moment I couldn't find the right way to get rendered data(It may exist but it's not documented).
#### What are the steps to reproduce?
--
#### What is the use-case or motivation for changing an existing behavior?
I have found a hacky way to get currently rendered data on the table page.
The data is filtered, sorted, and paginated, so I have to get the currently visible data, for let's say row selection's page toggle(clicking it will select all filtered and sorted data on the current table page).
I'm using `this.dataSource['_renderData']['value']`, but the problem is that, `_renderData` is a `private` property of type `BehaviorSubject`. So accessing data in this way doesn't look good.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest
#### Is there anything else we should know?
--
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da MatTableDataSource e analizza come vengono attualmente esposti i suoi dati renderizzati, filtrati, ordinati e paginati, incluso il BehaviorSubject privato _renderData menzionato nel report. Confronta le API pubbliche esistenti e definisci un modo documentato per recuperare la pagina corrente; il lavoro sarà completato quando i consumer non avranno più bisogno di accedere a proprietà private.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100