angular-flex-layout

Angular mat-table pagination not working, entire data is loaded on First page of mat-table

半城伤御伤魂 提交于 2020-12-11 02:36:06
问题 I have use Angular Material table, i have bind data source from ts file,but all the data is loaded on very first page, pagination is not working.I have two more table, which are on same page,same problem for other tables too. I have tried setTimeout(() => this.dataSource.paginator = this.paginator); and ngAfterViewInit() { this.dataSource.paginator = this.paginator } HTML: <mat-table class="mt-4 table-container" fxFlex="100" [dataSource]="allUsers"> <ng-container matColumnDef="checked"> <mat

Angular Material FlexLayout fxHide does not hide

徘徊边缘 提交于 2020-08-11 00:30:23
问题 I am working on mat-stepper with usage of flex-layout. Every step contains and icon and a paragraph to make it responsible and more readable I want to hide paragraph on smaller screens and leave only icon. Per my understanding fxHide.lt-sm should hide element if the resolution is lower than small but unfortunately nothing happens and it looks like this: Image of stepper (Galaxy S5 size) Here is the code: <mat-horizontal-stepper> <mat-step> <ng-template matStepLabel> <ul> <li> <mat-icon>format

Angular Material FlexLayout fxHide does not hide

旧时模样 提交于 2020-08-11 00:30:02
问题 I am working on mat-stepper with usage of flex-layout. Every step contains and icon and a paragraph to make it responsible and more readable I want to hide paragraph on smaller screens and leave only icon. Per my understanding fxHide.lt-sm should hide element if the resolution is lower than small but unfortunately nothing happens and it looks like this: Image of stepper (Galaxy S5 size) Here is the code: <mat-horizontal-stepper> <mat-step> <ng-template matStepLabel> <ul> <li> <mat-icon>format

How to dynamically change fxFlex value in Angular5 on a static screen-size?

北城余情 提交于 2020-07-08 07:48:40
问题 I have two columns as below and I wanted to dynamically swap/change fxFlex value onClick of a button. I know that if you resize screen, fxFlex.md/lg etc will kick-in which I was able to accomplish. But am trying to understand how to change the fxFlex values on a static screen-size on some event like button-click. <div flexLayout="row"> <div fxFlex="fxFlexForCol1" style="background-color: green"> <button mat-raised-button (click)="swapViewableArea()">Click to enlarge view {{fxFlexForCol1}}<

Modal Layout Responsive in Angular Material

纵饮孤独 提交于 2020-05-24 05:51:26
问题 I have a problem on the responsiveness of using modals in Angular Material. How can i make it look good on small screens. It doesn't have to be mat-grid Pls see this stackblitz link Click Here openDialog() { const dialogRef = this.dialog.open(ModalComponent, { width: "650px", height: "380px" }); } 回答1: DemoYou can use media query in style.css @media only screen and (max-width: 700px) { .modal .mat-grid-tile { width:100% !important; position:relative!important; left:0 !important; } .modal .mat

Modal Layout Responsive in Angular Material

走远了吗. 提交于 2020-05-24 05:50:31
问题 I have a problem on the responsiveness of using modals in Angular Material. How can i make it look good on small screens. It doesn't have to be mat-grid Pls see this stackblitz link Click Here openDialog() { const dialogRef = this.dialog.open(ModalComponent, { width: "650px", height: "380px" }); } 回答1: DemoYou can use media query in style.css @media only screen and (max-width: 700px) { .modal .mat-grid-tile { width:100% !important; position:relative!important; left:0 !important; } .modal .mat

how do i include flex-layout

﹥>﹥吖頭↗ 提交于 2020-02-23 09:40:07
问题 I'm trying to add flex-layout to an angular app, but when I do and try to use it the app breaks. I've installed npm i @angular/flex-layout @angular/cdk then imported in app.module.ts import { FlexLayoutModule } from '@angular/flex-layout'; import [ FlexLayoutModule ] I've also upgraded typescript to the latest npm i typescript@latest But when the app tries to compile, I get all kinds of errors: ERROR in node_modules/@angular/flex-layout/core/typings/base/base2.d.ts:24:19 - error TS1086: An

Adjusting mat-table on xs screen size using flex box css in angular 2

假如想象 提交于 2020-01-15 15:25:09
问题 I have implemented a simple angular material table using flexbox css. In the desktop my table view is as shown below. In md screen size the view is In xs screen size its view is When i see the table in XS screen view ,the spacing between the table columns is not properly adjusted.. Is there a way out where i can add a horizontal scroll to space the table columns properly by specifying a min width to my table and adding a horizontal scroll when in XS and SM screen sizes. Below shown is my

Adjusting mat-table on xs screen size using flex box css in angular 2

送分小仙女□ 提交于 2020-01-15 15:25:09
问题 I have implemented a simple angular material table using flexbox css. In the desktop my table view is as shown below. In md screen size the view is In xs screen size its view is When i see the table in XS screen view ,the spacing between the table columns is not properly adjusted.. Is there a way out where i can add a horizontal scroll to space the table columns properly by specifying a min width to my table and adding a horizontal scroll when in XS and SM screen sizes. Below shown is my

Angular material 2 - input box not rendering properly as expected

时间秒杀一切 提交于 2020-01-06 06:42:47
问题 I am using Angular material 2 for angular 4 application along with angular flex layout. Below is the simple form <div fxLayoutGap="5px" fxLayout="column"> <mat-form-field class="full-width"> <input matInput placeholder="Email Id" type="text" [(ngModel)]="emailId"> </mat-form-field> <mat-form-field class="full-width"> <input matInput placeholder="Password" type="password" [(ngModel)]="password"> </mat-form-field> <mat-form-field class="full-width"> <input matInput placeholder="Confirm Password