diff --git a/utils/tabs/tab.component.ts b/utils/tabs/tab.component.ts index 60f26b2b..93c691f2 100644 --- a/utils/tabs/tab.component.ts +++ b/utils/tabs/tab.component.ts @@ -6,6 +6,12 @@ import { Component, Input } from '@angular/core'; +export interface TabIcon { + svg: string; + ratio: number; + fill: string; +} + @Component({ selector: 'my-tab', // styles: [ @@ -32,4 +38,5 @@ export class TabComponent { @Input('tabNumber') num: number; @Input('customClass') customClass:string = ""; @Input('tabId') tabId: string; + @Input('tabIcon') tabIcon: TabIcon; } diff --git a/utils/tabs/tabs.component.ts b/utils/tabs/tabs.component.ts index 90c4cfbf..5c176d0b 100644 --- a/utils/tabs/tabs.component.ts +++ b/utils/tabs/tabs.component.ts @@ -20,7 +20,8 @@ import { TabComponent } from './tab.component';
  • - + +
    {{tab.title}}
    {{tab.num | number}}
    diff --git a/utils/tabs/tabs.module.ts b/utils/tabs/tabs.module.ts index 21ba48ff..72991b3c 100644 --- a/utils/tabs/tabs.module.ts +++ b/utils/tabs/tabs.module.ts @@ -5,10 +5,11 @@ import { FormsModule } from '@angular/forms'; import {TabsComponent} from './tabs.component'; import {TabComponent} from "./tab.component"; import {SmallTabsComponent} from "./small-tabs.component"; +import {IconsModule} from '../icons/icons.module'; @NgModule({ imports: [ - CommonModule, FormsModule + CommonModule, FormsModule, IconsModule ], declarations: [ TabsComponent, TabComponent, SmallTabsComponent