/*! * 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-legend', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoLegendComponent extends NestedOption { @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 columnCount(): number { return this._getOption('columnCount'); } set columnCount(value: number) { this._setOption('columnCount', value); } @Input() get columnItemSpacing(): number { return this._getOption('columnItemSpacing'); } set columnItemSpacing(value: number) { this._setOption('columnItemSpacing', value); } @Input() get customizeHint(): Function { return this._getOption('customizeHint'); } set customizeHint(value: Function) { this._setOption('customizeHint', 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 horizontalAlignment(): string { return this._getOption('horizontalAlignment'); } set horizontalAlignment(value: string) { this._setOption('horizontalAlignment', value); } @Input() get hoverMode(): string { return this._getOption('hoverMode'); } set hoverMode(value: string) { this._setOption('hoverMode', value); } @Input() get itemsAlignment(): string { return this._getOption('itemsAlignment'); } set itemsAlignment(value: string) { this._setOption('itemsAlignment', value); } @Input() get itemTextPosition(): string { return this._getOption('itemTextPosition'); } set itemTextPosition(value: string) { this._setOption('itemTextPosition', value); } @Input() get margin(): number| { bottom?: number, left?: number, right?: number, top?: number } { return this._getOption('margin'); } set margin(value: number| { bottom?: number, left?: number, right?: number, top?: number }) { this._setOption('margin', value); } @Input() get markerSize(): number { return this._getOption('markerSize'); } set markerSize(value: number) { this._setOption('markerSize', value); } @Input() get orientation(): string { return this._getOption('orientation'); } set orientation(value: string) { this._setOption('orientation', 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 position(): string { return this._getOption('position'); } set position(value: string) { this._setOption('position', value); } @Input() get rowCount(): number { return this._getOption('rowCount'); } set rowCount(value: number) { this._setOption('rowCount', value); } @Input() get rowItemSpacing(): number { return this._getOption('rowItemSpacing'); } set rowItemSpacing(value: number) { this._setOption('rowItemSpacing', value); } @Input() get verticalAlignment(): string { return this._getOption('verticalAlignment'); } set verticalAlignment(value: string) { this._setOption('verticalAlignment', value); } @Input() get visible(): boolean { return this._getOption('visible'); } set visible(value: boolean) { this._setOption('visible', value); } protected get _optionPath() { return 'legend'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoLegendComponent ], exports: [ DxoLegendComponent ], }) export class DxoLegendModule { }