mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
feat: add a bunch of new Nebular demos (#1911)
This commit is contained in:
parent
c594a5a4c5
commit
3f1f4c558b
185 changed files with 5176 additions and 422 deletions
70
src/app/pages/modal-overlays/dialog/dialog.component.html
Normal file
70
src/app/pages/modal-overlays/dialog/dialog.component.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12 col-lg-6 col-xxxl-3">
|
||||
<nb-card>
|
||||
<nb-card-header>Open Dialog</nb-card-header>
|
||||
<nb-card-body>
|
||||
<button nbButton (click)="open()">Open Dialog with component</button>
|
||||
|
||||
<button nbButton (click)="open2(dialog)">Open Dialog with template</button>
|
||||
</nb-card-body>
|
||||
</nb-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6 col-xxxl-3">
|
||||
<nb-card>
|
||||
<nb-card-header>Open Without Backdrop</nb-card-header>
|
||||
<nb-card-body>
|
||||
<button nbButton (click)="open()">Open Dialog with backdrop</button>
|
||||
|
||||
<button nbButton (click)="openWithoutBackdrop(dialog)">Open Dialog without backdrop</button>
|
||||
</nb-card-body>
|
||||
</nb-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6 col-xxxl-3">
|
||||
<nb-card>
|
||||
<nb-card-header>Open Without Esc Close</nb-card-header>
|
||||
<nb-card-body>
|
||||
<button nbButton (click)="open()">Open Dialog with esc close</button>
|
||||
|
||||
<button nbButton (click)="openWithoutEscClose(dialog)">Open Dialog without esc close</button>
|
||||
</nb-card-body>
|
||||
</nb-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6 col-xxxl-3">
|
||||
<nb-card>
|
||||
<nb-card-header>Open Without Backdrop Click</nb-card-header>
|
||||
<nb-card-body>
|
||||
<button nbButton (click)="open()">Open Dialog with backdrop click</button>
|
||||
|
||||
<button nbButton (click)="openWithoutBackdropClick(dialog)">Open without backdrop click</button>
|
||||
</nb-card-body>
|
||||
</nb-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6 col-xxxl-3">
|
||||
<nb-card class="form-input-card">
|
||||
<nb-card-header>Return Result From Dialog</nb-card-header>
|
||||
<nb-card-body class="result-from-dialog">
|
||||
<button nbButton (click)="open3()">Enter Name</button>
|
||||
<br>
|
||||
<h3 class="title">Names:</h3>
|
||||
<ul>
|
||||
<li *ngFor="let name of names">{{ name }}</li>
|
||||
</ul>
|
||||
</nb-card-body>
|
||||
</nb-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ng-template #dialog let-data let-ref="dialogRef">
|
||||
<nb-card>
|
||||
<nb-card-header>Template Dialog</nb-card-header>
|
||||
<nb-card-body>{{ data }}</nb-card-body>
|
||||
<nb-card-footer>
|
||||
<button nbButton (click)="ref.close()">Close Dialog</button>
|
||||
</nb-card-footer>
|
||||
</nb-card>
|
||||
</ng-template>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue