26 lines
771 B
TypeScript
Raw Normal View History

2019-08-31 20:51:14 -07:00
import Component from '@ember/component';
// @ts-ignore: Ignore import of compiled template
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;
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');
}
}