2020-05-18 14:37:52 +02:00
|
|
|
/**
|
|
|
|
* A single tab page. It renders the passed template
|
|
|
|
* via the @Input properties by using the ngTemplateOutlet
|
|
|
|
* and ngTemplateOutletContext directives.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
|
2022-01-21 14:40:30 +01:00
|
|
|
export interface TabIcon {
|
|
|
|
svg: string;
|
|
|
|
ratio: number;
|
|
|
|
fill: string;
|
|
|
|
}
|
|
|
|
|
2020-05-18 14:37:52 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'my-tab',
|
|
|
|
template: `
|
2022-02-22 23:37:18 +01:00
|
|
|
<div>
|
2020-05-18 14:37:52 +02:00
|
|
|
<ng-content></ng-content>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
})
|
|
|
|
export class TabComponent {
|
|
|
|
@Input('tabTitle') title: string;
|
|
|
|
@Input('tabNumber') num: number;
|
2021-04-08 12:50:11 +02:00
|
|
|
@Input('customClass') customClass:string = "";
|
2020-05-18 14:37:52 +02:00
|
|
|
@Input('tabId') tabId: string;
|
2022-01-21 14:40:30 +01:00
|
|
|
@Input('tabIcon') tabIcon: TabIcon;
|
2020-05-18 14:37:52 +02:00
|
|
|
}
|