/*! * devextreme-angular-test * Version: 17.2.8 * Build date: Mon Feb 05 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ import { Component, NgModule, Host, SkipSelf, Input } from '@angular/core'; import DevExpress from 'devextreme/bundles/dx.all'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-tooltip', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoTooltipComponent extends NestedOption { @Input() get arrowLength(): number { return this._getOption('arrowLength'); } set arrowLength(value: number) { this._setOption('arrowLength', value); } @Input() get border(): any { return this._getOption('border'); } set border(value: any) { this._setOption('border', value); } @Input() get color(): string { return this._getOption('color'); } set color(value: string) { this._setOption('color', value); } @Input() get container(): Element| JQuery { return this._getOption('container'); } set container(value: Element| JQuery) { this._setOption('container', value); } @Input() get customizeTooltip(): Function { return this._getOption('customizeTooltip'); } set customizeTooltip(value: Function) { this._setOption('customizeTooltip', value); } @Input() get enabled(): boolean { return this._getOption('enabled'); } set enabled(value: boolean) { this._setOption('enabled', value); } @Input() get font(): DevExpress.viz.Font { return this._getOption('font'); } set font(value: DevExpress.viz.Font) { this._setOption('font', value); } @Input() get format(): DevExpress.ui.format| string { return this._getOption('format'); } set format(value: DevExpress.ui.format| string) { this._setOption('format', value); } @Input() get opacity(): number { return this._getOption('opacity'); } set opacity(value: number) { this._setOption('opacity', value); } @Input() get paddingLeftRight(): number { return this._getOption('paddingLeftRight'); } set paddingLeftRight(value: number) { this._setOption('paddingLeftRight', value); } @Input() get paddingTopBottom(): number { return this._getOption('paddingTopBottom'); } set paddingTopBottom(value: number) { this._setOption('paddingTopBottom', value); } @Input() get precision(): number { return this._getOption('precision'); } set precision(value: number) { this._setOption('precision', value); } @Input() get shadow(): any { return this._getOption('shadow'); } set shadow(value: any) { this._setOption('shadow', value); } @Input() get zIndex(): number { return this._getOption('zIndex'); } set zIndex(value: number) { this._setOption('zIndex', value); } @Input() get horizontalAlignment(): string { return this._getOption('horizontalAlignment'); } set horizontalAlignment(value: string) { this._setOption('horizontalAlignment', value); } @Input() get verticalAlignment(): string { return this._getOption('verticalAlignment'); } set verticalAlignment(value: string) { this._setOption('verticalAlignment', value); } @Input() get argumentFormat(): DevExpress.ui.format| string { return this._getOption('argumentFormat'); } set argumentFormat(value: DevExpress.ui.format| string) { this._setOption('argumentFormat', value); } @Input() get argumentPrecision(): number { return this._getOption('argumentPrecision'); } set argumentPrecision(value: number) { this._setOption('argumentPrecision', value); } @Input() get location(): string { return this._getOption('location'); } set location(value: string) { this._setOption('location', value); } @Input() get percentPrecision(): number { return this._getOption('percentPrecision'); } set percentPrecision(value: number) { this._setOption('percentPrecision', value); } @Input() get shared(): boolean { return this._getOption('shared'); } set shared(value: boolean) { this._setOption('shared', value); } @Input() get isShown(): boolean { return this._getOption('isShown'); } set isShown(value: boolean) { this._setOption('isShown', value); } @Input() get text(): string { return this._getOption('text'); } set text(value: string) { this._setOption('text', value); } @Input() get position(): string { return this._getOption('position'); } set position(value: string) { this._setOption('position', value); } @Input() get showMode(): string { return this._getOption('showMode'); } set showMode(value: string) { this._setOption('showMode', value); } protected get _optionPath() { return 'tooltip'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoTooltipComponent ], exports: [ DxoTooltipComponent ], }) export class DxoTooltipModule { }