2019-08-31 20:51:14 -07:00
|
|
|
import Component from '@ember/component';
|
|
|
|
// @ts-ignore: Ignore import of compiled template
|
2020-08-26 15:44:50 -07:00
|
|
|
import layout from '../../../templates/components/entity-page/entity-header/entity-title';
|
2019-08-31 20:51:14 -07:00
|
|
|
import { set } from '@ember/object';
|
|
|
|
import { tagName, classNames } from '@ember-decorators/component';
|
|
|
|
|
|
|
|
@tagName('h2')
|
|
|
|
@classNames('wherehows-entity-header-title')
|
|
|
|
export default class EntityHeaderEntityTitle extends Component {
|
|
|
|
layout = layout;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Typically the title or name of the entity
|
|
|
|
* @type {string}
|
|
|
|
* @memberof EntityHeaderEntityTitle
|
|
|
|
*/
|
|
|
|
title!: string;
|
|
|
|
|
2020-08-26 15:44:50 -07:00
|
|
|
constructor(properties?: object) {
|
|
|
|
super(properties);
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
// Initialization defaults for expected component attributes
|
|
|
|
typeof this.title === 'string' || set(this, 'title', 'UNKNOWN');
|
|
|
|
}
|
|
|
|
}
|