/*! * 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-title', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoTitleComponent extends NestedOption { @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 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 placeholderSize(): number { return this._getOption('placeholderSize'); } set placeholderSize(value: number) { this._setOption('placeholderSize', value); } @Input() get position(): string { return this._getOption('position'); } set position(value: string) { this._setOption('position', value); } @Input() get subtitle(): string| { font?: DevExpress.viz.Font, text?: string } { return this._getOption('subtitle'); } set subtitle(value: string| { font?: DevExpress.viz.Font, text?: string }) { this._setOption('subtitle', 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); } protected get _optionPath() { return 'title'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoTitleComponent ], exports: [ DxoTitleComponent ], }) export class DxoTitleModule { }