Browse Source

Update NavItem model for toolbar

pull/17247/head
Masum ULU 3 years ago
parent
commit
b200883202
  1. 9
      npm/ng-packs/packages/theme-shared/src/lib/models/nav-item.ts

9
npm/ng-packs/packages/theme-shared/src/lib/models/nav-item.ts

@ -1,8 +1,17 @@
import { Injector, Type } from '@angular/core';
import { Observable, of } from 'rxjs';
export interface Badge {
count?: number | Observable<number>;
color?: string;
icon?: string;
}
export class NavItem {
id?: string | number;
name?: string;
description?: string;
badge?: Badge;
component?: Type<any>;
html?: string;
action?: () => void;

Loading…
Cancel
Save