UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

28 lines (27 loc) 981 B
/** * DevExtreme (esm/__internal/scheduler/workspaces/timeline_week.js) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import registerComponent from "../../../core/component_registrator"; import { VIEWS } from "../utils/options/constants_view"; import SchedulerTimeline from "./timeline"; const TIMELINE_CLASS = "dx-scheduler-timeline-week"; const TIMELINE_WORK_WEEK_CLASS = "dx-scheduler-timeline-work-week"; export default class SchedulerTimelineWeek extends SchedulerTimeline { get type() { return this.option("type") ?? VIEWS.TIMELINE_WEEK } getElementClass() { return this.type === VIEWS.TIMELINE_WORK_WEEK ? TIMELINE_WORK_WEEK_CLASS : TIMELINE_CLASS } needRenderWeekHeader() { return true } } registerComponent("dxSchedulerTimelineWeek", SchedulerTimelineWeek);