mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 11:59:54 +00:00
37 lines
816 B
TypeScript
37 lines
816 B
TypeScript
import Component from '@ember/component';
|
|
// @ts-ignore: Ignore import of compiled template
|
|
import template from '../templates/components/more-info';
|
|
import { tagName, classNames, layout } from '@ember-decorators/component';
|
|
|
|
@tagName('span')
|
|
@classNames('more-info')
|
|
@layout(template)
|
|
export default class MoreInfo extends Component {
|
|
/**
|
|
* Proxies to anchor element target attribute
|
|
* @type {string}
|
|
* @memberOf MoreInfo
|
|
*/
|
|
target: string = '_blank';
|
|
|
|
/**
|
|
* Proxies to anchor element href attribute
|
|
* @type {string}
|
|
* @memberOf MoreInfo
|
|
*/
|
|
link: string = '#';
|
|
|
|
/**
|
|
* Renders the tool tip component, if present
|
|
* @type {string}
|
|
* @memberOf MoreInfo
|
|
*/
|
|
tooltip?: string;
|
|
|
|
/**
|
|
* Disables DOM event propagation
|
|
* @return {boolean}
|
|
*/
|
|
click = () => false;
|
|
}
|