Skip to content

Commit da60598

Browse files
committed
feat(ngx-material-pages): input for the title of the toolbar
1 parent 4cddd30 commit da60598

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/module/components/ngx-material-pages/ngx-material-pages.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<button mat-icon-button (click)="sidenav.toggle()">
1818
<mat-icon>menu</mat-icon>
1919
</button>
20-
ngx-material-pages
20+
{{title}}
2121
</mat-toolbar>
2222
<div class="demo-sidenav-content main-container">
2323

src/module/components/ngx-material-pages/ngx-material-pages.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
ChangeDetectionStrategy,
44
Component,
55
ContentChildren, EventEmitter,
6-
forwardRef, HostListener,
6+
forwardRef, HostListener, Input,
77
OnInit, Output,
88
QueryList, ViewChild,
99
ViewEncapsulation
@@ -25,6 +25,9 @@ export class NgxMaterialPagesComponent implements OnInit, AfterContentInit {
2525
@ContentChildren(NgxMaterialPageLoaderComponent)
2626
pages: QueryList<NgxMaterialPageLoaderComponent>;
2727

28+
@Input()
29+
title: string;
30+
2831
@Output()
2932
done: EventEmitter<void> = new EventEmitter<void>();
3033

0 commit comments

Comments
 (0)