aboutsummaryrefslogtreecommitdiffstats
path: root/stories/angular/helpers/colors-table.component.ts
blob: 4c8f83f213ea6b644db053aa2227a70f997b5a31 (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
27
28
import { Component, Input } from "@angular/core";

@Component({
    selector: "colors-table",
    template: `

        <h1>{{tableTitle}}</h1>
        <div class="colors-table">
            <div class="color-group" *ngFor="let colorGroup of tableMapColors">
                <div class="color-section" *ngFor="let color of colorGroup | keys">
                    <div class='sdc-bc-{{color}} color-circle'></div>
                    <div>{{color}}</div>
                    <div>{{colorGroup[color]}}</div>
                </div>
            </div>
        </div>
`
})
export class ColorsTable {

    @Input() tableTitle: string;
    @Input() tableMapColors: Object;

    constructor() {

    }

}