1.0.23 • Published 4 years ago
ngx-material-popover v1.0.23
ngx-material-popover
Popover for Angular Material
Uses the material menu to work like a popover
Dependencies
- @angular/material
- @angular/cdk
Installation
npm install --save ngx-material-popoverUsage
//app.module.ts
import { NgxMaterialPopoverModule } from 'ngx-material-popover';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
imports: [
NgxMaterialPopoverModule,
BrowserAnimationsModule
]
})For animations please import the BrowserAnimationsModule.
<ngx-material-popover
[popoverContent]="popoverContent"
[clickOutToClose]="true"
[xPosition]="xPosition"
[yPosition]="yPosition"
[clickOutToClose]="true"
(onClose)="popoverClosed($event)"
#popover="ngxMaterialPopover" mode="toggle">
<button mat-raised-button data-cy="button">Popover Example</button>
</ngx-material-popover>
<ng-template #popoverContent>
<p>Popover content</p>
<div class="footer">
<button mat-button (click)="onClose()">close</button>
<button mat-raised-button color="accent" (click)="onConfirm()" data-cy="button-close-popover">OK</button>
</div>
</ng-template>1.0.23
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.0-pre.2
4 years ago
1.0.0-pre.1
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago