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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
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; |
|
|
|
|