Questions tagged [mat-table]

Angular Material - mat-table

The mat-table provides a Material Design styled data-table that can be used to display rows of data.

607 questions
-2
votes
1 answer

How to remove the T character from a date in Angular

I am receiving from the API a datetime like this: 2021-03-21T22:00:00 Here is my component.ts ELEMENT_DATA: ReservationList[]; displayedColumns: string[] = ['fullName', 'brand', 'model', 'rentalStartDate', 'rentalEndDate', 'pickUpLocation',…
-2
votes
1 answer

Angular - MatTable not displaying data

I have issues displaying data from one of the JSON object it get from my client. I see only the header data. I am not clear what am i missing. I checked the JSON file sent by the client, it is good. TS File Code: import { Component, OnInit, Input }…
Ragu
  • 27
  • 1
  • 6
-2
votes
1 answer

Modify DateTime receiving from response and show only the date in mat-table

I'm currently using mat-table to show my api response. But for the date, time is also attached. I want to omit the time part and show only the date in mat-table. How to achieve this ? service.ts getNotifications() { const token =…
ONE_FE
  • 968
  • 3
  • 19
  • 39
-2
votes
1 answer

How to export an Angular Material Table into a pdf as well as csv, which should be downloaded on click of a button

I am using Angular Material Table, to show data, which i am getting from an API call. The question now is, how can I export the Mat-Table data into a PDF and a CSV on click of a button, any Angular Modules which can help me serve my purpose. Thanks
Satya ram
  • 67
  • 3
  • 8
-2
votes
3 answers

How to feed data to mat-cell based off of data from a different mat-cell

I have a mat-table that renders data dynamically like this: No. {{element.type}}…
-3
votes
1 answer

Edit Table Column Header

I wanted to know if there is any way we can edit the column headers of a mat-table and store the new value in some variable. I haven't found a satisfactory answer anywhere to this.
moibra
  • 1
  • 1
  • 2
-4
votes
1 answer

When a button is clicked I want to access the data of the rows which were checked by the user.I don't know how to loop through my mat-table rows

I want to loop through this column of my mat-table to find which rows are checked and then push that row data into an array.
Kourosh
  • 11
  • 5
1 2 3
40
41