Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not harcoded name #91

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[navigationNodes]="demoAppList"
[appContent]="appContent"
[navbarAction]="navbarAction"
[headerTitle]="headerTitle"
(nodeChosen)="nodeChosen($event)"
(brandAction)="brandAction($event)"
(logout)="logout()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { GlobalNavComponent, NavigationNode } from '@finastra/angular-components
export class GlobalNavDemoComponent {
appName = 'Global Nav Demo';
shortName = 'gnd';
headerTitle='Applications'

demoAppList: NavigationNode[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h6 class="uxg-h6">{{ appName | uppercase }}</h6>
</div>

<mat-nav-list class="uxg-nav-list-main uxg-nav-list">
<div matSubheader>Applications</div>
<div matSubheader>{{ headerTitle }}</div>
<ng-container *ngFor="let node of navigationNodes">
<a
mat-list-item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class SidenavComponent implements OnInit, OnChanges {
@Input() shortName!: string;
@Input() navigationNodes!: NavigationNode[];
@Input() activeRoute!: string;
@Input() headerTitle!: string;

@Output() logout = new EventEmitter<void>();
@Output() nodeChosen = new EventEmitter<NavigationNode>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[shortName]="shortName"
[navigationNodes]="navigationNodes"
[activeRoute]="activeRoute"
[headerTitle]="headerTitle"
(nodeChosen)="nodeChosen.emit($event)"
(logout)="logout.emit()"
></uxg-sidenav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class GlobalNavComponent implements OnInit, OnDestroy {
@Input() brandIcon: string | undefined;
@Input() appContent!: TemplateRef<any>;
@Input() navbarAction!: TemplateRef<any>;
@Input() headerTitle!: string;

@Output() menuClick = new EventEmitter<void>();
@Output() brandAction = new EventEmitter<any>();
Expand Down
Loading