UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

70 lines (69 loc) 1.99 kB
import { IgxTimeAxisLabelFormatComponent } from "./igx-time-axis-label-format-component"; import { LabelFormatOverrideEventArgs as LabelFormatOverrideEventArgs_internal } from "./LabelFormatOverrideEventArgs"; /** * Event args used byt the LabelFormatOverride Delegate to provide a way to override default label functionality.. */ export class IgxLabelFormatOverrideEventArgs { constructor() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } createImplementation() { return new LabelFormatOverrideEventArgs_internal(); } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } /** * The DateTime the override is invoked with. */ get dateTime() { return this.i.dateTime; } set dateTime(v) { this.i.dateTime = v; } /** * The format to which this override is attached. */ get format() { const r = this.i.format; if (r == null) { return null; } if (!r.externalObject) { let e = IgxTimeAxisLabelFormatComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set format(v) { v == null ? this.i.format = null : this.i.format = v.i; } /** * Gets or sets the label that should be used. */ get label() { return this.i.label; } set label(v) { this.i.label = v; } }