| <kendo-appbar *ngIf='login' class='appbar' [position]="'top'" [positionMode]="'sticky'"> | |||||
| <kendo-appbar id='topBar' *ngIf='login' class='appbar' [position]="'top'" [positionMode]="'sticky'"> | |||||
| <kendo-appbar-section> | <kendo-appbar-section> | ||||
| <kendo-menu [items]="items" (select)="onSelect($event)"> | <kendo-menu [items]="items" (select)="onSelect($event)"> | ||||
| <ng-template kendoMenuItemTemplate let-item="item"> | |||||
| <fa-icon *ngIf="menuItemHasFontawesome(item)" [icon]="item.fa"></fa-icon> | |||||
| {{ item.text }} | |||||
| <ng-template kendoMenuItemTemplate let-item="item" > | |||||
| <span class='main-menu-item'> | |||||
| <fa-icon *ngIf="menuItemHasFontawesome(item)" [icon]="item.fa"></fa-icon> | |||||
| {{ item.text }} </span> | |||||
| </ng-template> | </ng-template> | ||||
| </kendo-menu> | </kendo-menu> | ||||
| </kendo-appbar-section> | </kendo-appbar-section> |
| .appbar, | .appbar, | ||||
| .k-appbar-sticky{ | .k-appbar-sticky{ | ||||
| z-index: 1000; | z-index: 1000; | ||||
| } | |||||
| } | |||||
| #topBar .main-menu-item , #topBar .k-icon { | |||||
| color:black !important; | |||||
| } | |||||
| .k-menu:not(.k-context-menu) > .k-item > .k-state-active { | |||||
| background-color: lightblue; | |||||
| } |
| import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; | |||||
| import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; | |||||
| import { Subscription } from 'rxjs'; | import { Subscription } from 'rxjs'; | ||||
| import { LoanEditComponent } from './loan-edit/loan-edit.component'; | import { LoanEditComponent } from './loan-edit/loan-edit.component'; | ||||
| @Component({ | @Component({ | ||||
| selector: 'app-root', | selector: 'app-root', | ||||
| templateUrl: './app.component.html', | templateUrl: './app.component.html', | ||||
| styleUrls: ['./app.component.scss'] | |||||
| styleUrls: ['./app.component.scss'], | |||||
| encapsulation: ViewEncapsulation.None | |||||
| }) | }) | ||||
| export class AppComponent implements OnInit , OnDestroy { | export class AppComponent implements OnInit , OnDestroy { | ||||
| title = 'SFM broker'; | title = 'SFM broker'; |