ui.scheduler.timeline_day.js 956 B

1234567891011121314151617181920212223242526
  1. /**
  2. * DevExtreme (ui/scheduler/workspaces/ui.scheduler.timeline_day.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var registerComponent = require("../../../core/component_registrator");
  11. var SchedulerTimeline = require("./ui.scheduler.timeline");
  12. var TIMELINE_CLASS = "dx-scheduler-timeline-day";
  13. var SchedulerTimelineDay = SchedulerTimeline.inherit({
  14. _getElementClass: function() {
  15. return TIMELINE_CLASS
  16. },
  17. _setFirstViewDate: function() {
  18. this._firstViewDate = this.option("currentDate");
  19. this._setStartDayHour(this._firstViewDate)
  20. },
  21. _needRenderWeekHeader: function() {
  22. return this._isWorkSpaceWithCount()
  23. }
  24. });
  25. registerComponent("dxSchedulerTimelineDay", SchedulerTimelineDay);
  26. module.exports = SchedulerTimelineDay;