angular-material-table

mat-select dropdown position not aligned

為{幸葍}努か 提交于 2021-01-28 05:34:14
问题 I'm using some angular material components but something went wrong with input box and and select option elements. The select option is not aligned properly. when i click to see select option list it showing me outside of my current div or can say left side of page which is not correct. ng -v Angular CLI: 1.7.4 Node: 8.11.1 OS: win32 x64 Angular: 5.2.11 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router

Angular Mat-Table finished rendering Event / Mat Paginator Loading Spinner

我的未来我决定 提交于 2021-01-27 08:41:27
问题 I am using an Angular Material Table with a rather big, pre queried Datasource. Now, everytime i change the Table Pages with the built in Paginator, i have a short Delay before the new Table-Rows are rendered and i would like to display a Loading Spinner in the meantime. The Problem is, the Paginator does only fire a single Event when the Table-Page starts changing and up to now, I did not find a solution to find out, when the new Rows are rendered completely. (This would be the moment when I

Angular Mat-Table finished rendering Event / Mat Paginator Loading Spinner

不羁岁月 提交于 2021-01-27 08:37:55
问题 I am using an Angular Material Table with a rather big, pre queried Datasource. Now, everytime i change the Table Pages with the built in Paginator, i have a short Delay before the new Table-Rows are rendered and i would like to display a Loading Spinner in the meantime. The Problem is, the Paginator does only fire a single Event when the Table-Page starts changing and up to now, I did not find a solution to find out, when the new Rows are rendered completely. (This would be the moment when I

Angular Mat-Table finished rendering Event / Mat Paginator Loading Spinner

感情迁移 提交于 2021-01-27 08:37:51
问题 I am using an Angular Material Table with a rather big, pre queried Datasource. Now, everytime i change the Table Pages with the built in Paginator, i have a short Delay before the new Table-Rows are rendered and i would like to display a Loading Spinner in the meantime. The Problem is, the Paginator does only fire a single Event when the Table-Page starts changing and up to now, I did not find a solution to find out, when the new Rows are rendered completely. (This would be the moment when I

Angular Material Table Sorting with reactive formarray

亡梦爱人 提交于 2021-01-05 08:52:24
问题 I am trying to implement sorting / filtering on angular material table with formArray as input data source. StackBlits code link dataSource = new MatTableDataSource([]); <table mat-table [dataSource]="formdataarray.controls" multiTemplateDataRows class="mat elevation-z8" matSort > <ng-container matColumnDef="{{column}}" *ngFor="let column of columnsToDisplay" > <th mat-header-cell *matHeaderCellDef mat-sort-header>{{column}}</th> <td mat-cell *matCellDef="let element"> {{ element.value[column

Angular Material Table Cell Formatting

这一生的挚爱 提交于 2020-05-25 07:58:26
问题 I'm using angular material table for displaying data and dyanmically binding the table header and table data. Is there any way to format particaular column's cell content dynamically?. For example how can i format the value of amount column right aligned? My code is as below : <table mat-table [dataSource]="dataSource" class="" style="width: 100%;"> <ng-container [matColumnDef]="col" *ngFor="let col of displayedColumns; let i = index"> <th *matHeaderCellDef> {{displayedFields[i].name}}</th>

Angular material 2 table - define column using TemplateRef and ngTemplateOutlet

谁说我不能喝 提交于 2020-02-23 11:53:51
问题 I am trying to make reusable material table and I want to use TemplateRef with ngTemplateOutlet to generate columns. In this example I created cards components which is using my material-table component. In cards.component.html I have template of one of my table's column. Running the project will cause an error ERROR TypeError: Cannot read property 'template' of undefined (see console on stackblitz ). Is it possible to pass columnt template to my MaterialTableComponent and use it to define

Angular material 2 table - define column using TemplateRef and ngTemplateOutlet

房东的猫 提交于 2020-02-23 11:53:49
问题 I am trying to make reusable material table and I want to use TemplateRef with ngTemplateOutlet to generate columns. In this example I created cards components which is using my material-table component. In cards.component.html I have template of one of my table's column. Running the project will cause an error ERROR TypeError: Cannot read property 'template' of undefined (see console on stackblitz ). Is it possible to pass columnt template to my MaterialTableComponent and use it to define

mat-paginator breaks when mat-table is inside of NgIf

血红的双手。 提交于 2020-01-24 05:51:13
问题 I have an angular project that is using mat-table and mat-paginator for a certain view, the problem is the view has a grid view and table view with a toggle, the grid view is default and table is hidden using an NgIf when the grid view is active. If I set the default to the table view then pagination works fine unless I swap to grid view and back, if the default if set to grid it breaks when I swap to the table view. I'm guessing its because the table is hidden when this code runs: this