mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 11:59:54 +00:00
20 lines
653 B
TypeScript
20 lines
653 B
TypeScript
import Component from '@ember/component';
|
|
// @ts-ignore: Ignore import of compiled template
|
|
import template from '../templates/components/notifications-toast';
|
|
import { layout, classNames } from '@ember-decorators/component';
|
|
|
|
/**
|
|
* Renders a toast component in the DOM for Notifications of type NotificationType.Toast
|
|
* @export
|
|
* @extends {Component}
|
|
*/
|
|
@layout(template)
|
|
@classNames('notifications__toast')
|
|
export default class NotificationsToast extends Component {
|
|
/**
|
|
* Maximum character length for text content in a toast. Text that exceeds this value
|
|
* will be split in the middle and concatenated
|
|
*/
|
|
maxToastCharLength = 100;
|
|
}
|