[Library | Trunk]: Add header position on sidebard

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59995 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-12-01 08:50:55 +00:00
parent b37eb7dbf8
commit 26db1ae453
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
[alt]="properties.environment">
<img *ngIf="headerLogoUrl" class="logo " [src]="headerLogoUrl">
<div *ngIf="!headerLogoUrl" class="portalLogo logo"></div>
<div *ngIf="headerName" class="uk-disabled uk-text-muted uk-text-center">{{headerName}}</div>
<div *ngIf="headerName" class="uk-disabled uk-text-muted" [class.uk-text-center]="!open" [ngClass]="open?('uk-text-' + headerPosition):''">{{headerName}}</div>
</a>
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top">
<ul class="uk-list">

View File

@ -12,6 +12,7 @@ import {LayoutService} from "./layout.service";
export class SideBarComponent implements OnInit {
@Input() items: MenuItem[] = [];
@Input() headerName: string;
@Input() headerPosition: "left" | "center" | "right" = "center";
@Input() headerDashboard: string;
@Input() headerLogoUrl: string;
@Input() headerUrl: string;