UNPKG

@progress/kendo-angular-gantt

Version:
56 lines (55 loc) 2.17 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter } from '@angular/core'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { TimelineViewType } from './../models/timeline-view'; import { SegmentedItemSettings } from '@progress/kendo-angular-buttons'; import * as i0 from "@angular/core"; /** * The Gantt ViewSelector component. Shows the current view type and lets you switch to another view type. */ export declare class ViewSelectorComponent { private localizationService; hostClass: boolean; /** * Lists the timeline view types in the current Gantt configuration. */ set views(value: TimelineViewType[]); get views(): TimelineViewType[]; /** * Sets the current view type. * @default 'week' */ activeView: TimelineViewType; /** * Fires when the user selects a different view type. The event data contains the type of the new view. */ activeViewChange: EventEmitter<TimelineViewType>; /** * @hidden */ segmentedItems: SegmentedItemSettings[]; private _views; constructor(localizationService: LocalizationService); /** * @hidden */ get selectedIndex(): number; /** * @hidden */ onSelectedChange(index: number): void; /** * @hidden */ getViewTypeText(viewType: TimelineViewType): string; /** * @hidden */ onActiveViewChange(event: Event): void; private updateSegmentedItems; static ɵfac: i0.ɵɵFactoryDeclaration<ViewSelectorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ViewSelectorComponent, "kendo-gantt-view-selector", never, { "views": { "alias": "views"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; }, { "activeViewChange": "activeViewChange"; }, never, never, true, never>; }