/*! * 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-text', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoTextComponent extends NestedOption { @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); } protected get _optionPath() { return 'text'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoTextComponent ], exports: [ DxoTextComponent ], }) export class DxoTextModule { }