novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
61 lines (55 loc) • 1.61 kB
text/typescript
// NG2
import { Component, Input, OnInit } from '@angular/core';
export class UtilsElement {
}
export class UtilActionElement {
icon: string;
inverse: boolean;
disabled: boolean;
}
export class NovoHeaderElement implements OnInit {
title: string;
subTitle: string;
theme: string;
icon: string;
config: any;
inverse: string = 'inverse';
iconClass: string;
ngOnInit() {
this.iconClass = `bhi-${this.icon}`;
this.config = this.config || {};
this.inverse = (this.theme === 'white' || this.theme === 'off-white' || this.theme === 'light') ? null : 'inverse';
}
}