Browse Source

Merge pull request #17247 from abpframework/feat/toolbar-items

AngularUI: Update NavItem model for toolbar
pull/17298/head
Mahmut Gundogdu 3 years ago
committed by GitHub
parent
commit
c9e9c7c736
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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