/*! * 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-label', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoLabelComponent extends NestedOption { @Input() get connectorColor(): string { return this._getOption('connectorColor'); } set connectorColor(value: string) { this._setOption('connectorColor', value); } @Input() get connectorWidth(): number { return this._getOption('connectorWidth'); } set connectorWidth(value: number) { this._setOption('connectorWidth', value); } @Input() get customizeText(): Function { return this._getOption('customizeText'); } set customizeText(value: Function) { this._setOption('customizeText', 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 indent(): number { return this._getOption('indent'); } set indent(value: number) { this._setOption('indent', value); } @Input() get precision(): number { return this._getOption('precision'); } set precision(value: number) { this._setOption('precision', value); } @Input() get visible(): boolean { return this._getOption('visible'); } set visible(value: boolean) { this._setOption('visible', value); } @Input() get horizontalAlignment(): string { return this._getOption('horizontalAlignment'); } set horizontalAlignment(value: string) { this._setOption('horizontalAlignment', value); } @Input() get position(): string { return this._getOption('position'); } set position(value: string) { this._setOption('position', value); } @Input() get text(): string { return this._getOption('text'); } set text(value: string) { this._setOption('text', value); } @Input() get verticalAlignment(): string { return this._getOption('verticalAlignment'); } set verticalAlignment(value: string) { this._setOption('verticalAlignment', value); } @Input() get alignment(): string { return this._getOption('alignment'); } set alignment(value: string) { this._setOption('alignment', value); } @Input() get customizeHint(): Function { return this._getOption('customizeHint'); } set customizeHint(value: Function) { this._setOption('customizeHint', value); } @Input() get displayMode(): string { return this._getOption('displayMode'); } set displayMode(value: string) { this._setOption('displayMode', value); } @Input() get indentFromAxis(): number { return this._getOption('indentFromAxis'); } set indentFromAxis(value: number) { this._setOption('indentFromAxis', value); } @Input() get overlappingBehavior(): string| { mode?: string, rotationAngle?: number, staggeringSpacing?: number }| { hideFirstOrLast?: string, useAutoArrangement?: boolean } { return this._getOption('overlappingBehavior'); } set overlappingBehavior(value: string| { mode?: string, rotationAngle?: number, staggeringSpacing?: number }| { hideFirstOrLast?: string, useAutoArrangement?: boolean }) { this._setOption('overlappingBehavior', value); } @Input() get rotationAngle(): number { return this._getOption('rotationAngle'); } set rotationAngle(value: number) { this._setOption('rotationAngle', value); } @Input() get staggeringSpacing(): number { return this._getOption('staggeringSpacing'); } set staggeringSpacing(value: number) { this._setOption('staggeringSpacing', 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 backgroundColor(): string { return this._getOption('backgroundColor'); } set backgroundColor(value: string) { this._setOption('backgroundColor', value); } @Input() get border(): any { return this._getOption('border'); } set border(value: any) { this._setOption('border', value); } @Input() get connector(): any { return this._getOption('connector'); } set connector(value: any) { this._setOption('connector', value); } @Input() get horizontalOffset(): number { return this._getOption('horizontalOffset'); } set horizontalOffset(value: number) { this._setOption('horizontalOffset', value); } @Input() get percentPrecision(): number { return this._getOption('percentPrecision'); } set percentPrecision(value: number) { this._setOption('percentPrecision', value); } @Input() get showForZeroValues(): boolean { return this._getOption('showForZeroValues'); } set showForZeroValues(value: boolean) { this._setOption('showForZeroValues', value); } @Input() get verticalOffset(): number { return this._getOption('verticalOffset'); } set verticalOffset(value: number) { this._setOption('verticalOffset', value); } @Input() get hideFirstOrLast(): string { return this._getOption('hideFirstOrLast'); } set hideFirstOrLast(value: string) { this._setOption('hideFirstOrLast', value); } @Input() get indentFromTick(): number { return this._getOption('indentFromTick'); } set indentFromTick(value: number) { this._setOption('indentFromTick', value); } @Input() get useRangeColors(): boolean { return this._getOption('useRangeColors'); } set useRangeColors(value: boolean) { this._setOption('useRangeColors', value); } @Input() get location(): string { return this._getOption('location'); } set location(value: string) { this._setOption('location', value); } @Input() get showColon(): boolean { return this._getOption('showColon'); } set showColon(value: boolean) { this._setOption('showColon', value); } @Input() get radialOffset(): number { return this._getOption('radialOffset'); } set radialOffset(value: number) { this._setOption('radialOffset', value); } @Input() get topIndent(): number { return this._getOption('topIndent'); } set topIndent(value: number) { this._setOption('topIndent', value); } @Input() get dataField(): string { return this._getOption('dataField'); } set dataField(value: string) { this._setOption('dataField', value); } @Input() get enabled(): boolean { return this._getOption('enabled'); } set enabled(value: boolean) { this._setOption('enabled', value); } protected get _optionPath() { return 'label'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoLabelComponent ], exports: [ DxoLabelComponent ], }) export class DxoLabelModule { }