aboutsummaryrefslogtreecommitdiffstats
path: root/stories/ng2-component-lab/components/colors-table.component.ts
blob: fc7bd2f76ce4a6cf32cdcdf77e61f6cdcbb6a4ad (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";

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

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

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

    constructor() {

    }

}