aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/svg-icon/svg-icon-label.component.ts
blob: 5a00c3d2a742103fbbed395dea54774fbcf8e502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Component, Input } from "@angular/core";
import { SvgIconComponent } from './svg-icon.component';
import { Mode, Size, Placement } from "../common/enums";
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
import template from './svg-icon-label.component.html';

@Component({
    selector: 'svg-icon-label',
    template: template,
    styles: [`
        :host {
            display: inline-flex;
        }
    `]
})
export class SvgIconLabelComponent extends SvgIconComponent {

    @Input() public label: string;
    @Input() public labelPlacement: Placement;
    @Input() public labelClassName: string;

    constructor(protected domSanitizer: DomSanitizer) {
        super(domSanitizer);
        this.labelPlacement = Placement.left;
    }
}