UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

36 lines (35 loc) 1.11 kB
/** * DevExtreme (esm/__internal/scheduler/workspaces/m_timeline_week.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import registerComponent from "../../../core/component_registrator"; import { getBoundingRect } from "../../../core/utils/position"; import { VIEWS } from "../m_constants"; import SchedulerTimeline from "./m_timeline"; const TIMELINE_CLASS = "dx-scheduler-timeline-week"; export default class SchedulerTimelineWeek extends SchedulerTimeline { get type() { return VIEWS.TIMELINE_WEEK } _getElementClass() { return TIMELINE_CLASS } _getHeaderPanelCellWidth($headerRow) { return getBoundingRect($headerRow.children().first().get(0)).width } _needRenderWeekHeader() { return true } _incrementDate(date) { date.setDate(date.getDate() + 1) } } registerComponent("dxSchedulerTimelineWeek", SchedulerTimelineWeek);