@progress/kendo-angular-scheduler
Version:
Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.
65 lines (64 loc) • 2.62 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { OnDestroy } from '@angular/core';
import { SchedulerView } from '../types';
import { ToolbarService } from './toolbar.service';
import { ToolbarContext } from './toolbar-context';
import { LocalizationService } from '@progress/kendo-angular-l10n';
import * as i0 from "@angular/core";
/**
* A toolbar component that contains controls for switching views
* ([see example](slug:toolbar_scheduler#toc-including-the-built-in-components)).
*
* To render the view-selection buttons, include this component in the [toolbar template](slug:api_scheduler_toolbartemplatedirective).
*
* @example
* ```html
* <kendo-scheduler>
* <ng-template kendoSchedulerToolbarTemplate>
* <div kendoSchedulerToolbarViewSelector responsiveBreakpoint]="960"></div>
* </ng-template>
* </kendo-scheduler>
* ```
*/
export declare class ToolbarViewSelectorComponent implements OnDestroy {
private service;
private localization;
/**
* Sets the current width of the Toolbar in pixels for responsive calculations. Use the [`schedulerResize`](slug:api_scheduler_schedulercomponent#toc-schedulerresize) event to get the Toolbar width.
*/
toolbarWidth: number;
/**
* Sets the Toolbar width in pixels at which responsive behavior is enabled. When enabled, the ButtonGroup with the views is replaced by a `select` element.
*
* @default 1024
*/
responsiveBreakpoint: number;
/**
* @hidden
*/
get ctx(): ToolbarContext;
/**
* @hidden
*/
get selectView(): string;
private detachDomEvents;
constructor(service: ToolbarService, localization: LocalizationService);
ngOnDestroy(): void;
/**
* @hidden
*/
select(view: SchedulerView): void;
/**
* @hidden
*/
onChange(e: any): void;
/**
* @hidden
*/
isSelected(view: SchedulerView): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarViewSelectorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarViewSelectorComponent, "[kendoSchedulerToolbarViewSelector]", never, { "toolbarWidth": { "alias": "toolbarWidth"; "required": false; }; "responsiveBreakpoint": { "alias": "responsiveBreakpoint"; "required": false; }; }, {}, never, never, true, never>;
}