mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-27 12:48:49 +01:00
feat(ui-features): add the modals page
This commit is contained in:
parent
c0efb43bd6
commit
8649247f87
7 changed files with 125 additions and 22 deletions
14
src/app/pages/ui-features/modals/modal/modal.component.html
Normal file
14
src/app/pages/ui-features/modals/modal/modal.component.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{{ modalHeader }}</h4>
|
||||
<button class="close" aria-label="Close" (click)="closeModal()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ modalContent }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-primary confirm-btn" (click)="closeModal()">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
26
src/app/pages/ui-features/modals/modal/modal.component.ts
Normal file
26
src/app/pages/ui-features/modals/modal/modal.component.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-modal',
|
||||
templateUrl: './modal.component.html'
|
||||
})
|
||||
export class NgxModalComponent implements OnInit {
|
||||
|
||||
modalHeader: string;
|
||||
modalContent: string = `Lorem ipsum dolor sit amet,
|
||||
consectetuer adipiscing elit, sed diam nonummy
|
||||
nibh euismod tincidunt ut laoreet dolore magna aliquam
|
||||
erat volutpat. Ut wisi enim ad minim veniam, quis
|
||||
nostrud exerci tation ullamcorper suscipit lobortis
|
||||
nisl ut aliquip ex ea commodo consequat.`;
|
||||
|
||||
constructor(private activeModal: NgbActiveModal) { }
|
||||
|
||||
ngOnInit() { }
|
||||
|
||||
closeModal() {
|
||||
this.activeModal.close();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue