UNPKG

bia-framework

Version:

Bia Framework to work with angular 2

40 lines (32 loc) 891 B
/** * Created by jacke on 10/01/2016. */ import {Component, ViewEncapsulation, Input, OnInit} from '@angular/core'; import {NgClass} from "@angular/common"; @Component({ selector: 'core-card', encapsulation: ViewEncapsulation.None, templateUrl: "node_modules/bia-framework/components/core-card/core-card.component.html", styleUrls: ['node_modules/bia-framework/components/core-card/core-card.css'], directives: [NgClass], host: {'class': 'view'} }) export class CoreCard implements OnInit { @Input() depth:number; @Input() color:string; @Input() isSelectable:boolean; constructor() { } ngOnInit():any { this.depth = this.depth || 1; this.color = this.color || 'white'; this.isSelectable = this.isSelectable || false; return undefined; } }