angular-material-6

How to open and close Angular mat menu on hover

自作多情 提交于 2019-11-30 07:12:05
This question is in reference to this Github issue, with mat-menu which can't be toggled using mouse hover, I am basically trying to replace a bootstrap based horizontal navigation menu with angular material's menu. The only thing keeping me from replicating bootstrap based menu is opening and closing mat-menu on hover. As mentioned in the above Github issue there are some workarounds to achieve what I want, like using, mouseEnter (mouseenter)="menuTrigger.openMenu()" or adding a span inside Mat-menu in order to bind mat-menu close, <mat-menu #menu="matMenu" overlapTrigger="false"> <span

MatTable Expand Collapse Icon issue on pagination and sort

匆匆过客 提交于 2019-11-29 14:07:04
I've a angular material table which uses detailRow directive to insert a detail/sibling adjacent row to a table row. StackBlitz I wanted to give it an appearance of as if the row is being expanded or collapsed, so I added couple of icons to it which are toggled on the click of cell containing them. <mat-header-cell *matHeaderCellDef> Action </mat-header-cell> <mat-cell *matCellDef="let element"> <button mat-icon-button color="primary" (click)="element[i] = !element[i]"> <mat-icon id="expand_more" #expand_more *ngIf="!element[i] " >expand_more</mat-icon> <mat-icon id="expand_less" #expand_less

Filtering different columns in a material table

梦想与她 提交于 2019-11-28 00:04:10
问题 I am trying to add different filters to a material table. To be more precise I am trying to reproduce something similar to the following GIF For doing so I am following irowbin's response in the following Github thread but I can't really produce what I want based on his guidelines Is there any working example on Stackblitz or Github so I can follow and create multiple search filters inside mattable? 回答1: this an example of implement column filter for angular material table based on other

How to open and close Angular mat menu on hover

自作多情 提交于 2019-11-27 21:20:58
问题 This question is in reference to this Github issue, with mat-menu which can't be toggled using mouse hover, I am basically trying to replace a bootstrap based horizontal navigation menu with angular material's menu. The only thing keeping me from replicating bootstrap based menu is opening and closing mat-menu on hover. As mentioned in the above Github issue there are some workarounds to achieve what I want, like using, mouseEnter (mouseenter)="menuTrigger.openMenu()" or adding a span inside