Questions Tagged javascript

Api Key

Answered: Can you please contact support@daypilot.org?

scrollToResource is buggy.

Answered: The scrollToResource() method is quite simple (it sets the scrollTop style to the appropriate value) but it is executed asynchronously, after a delay of 100ms. It’s good to take this into account. I ...

How do i delete a full row?

Answered: You can add a delete icon to the Scheduler row headers using an active area . onBeforeRowHeaderRender: (args) => { args.row.areas = [ { right: 3, top: 3, width: 16, height: 16, symbol: "../icons/dayp...

Collapse task in DayPilot.Gantt

Answered: The tasks.list array holds the raw data objects (they don’t have any methods). The method you need is DayPilot.Task.row.collapse() . You can call it like this: this.gantt.tasks.find(row.id).row.colla...

Adding custom filters

Answered: To apply the filter, it is necessary to call the rows.filter() method with a non-null parameter. It also updates the UI (no additional update() call is necessary). This filter parameter is then store...

Adding custom CSS to task in Gantt

Answered: It is necessary to style the task children independently. It is not possible to style task children by applying a CSS class to their parent. In the resulting DOM structure, the task children are not ...

Hide resources panel (Scheduler)

Answered: Yes, it is possible to hide/show the Scheduler row headers using the API ( rows.headerHide() and rows.headerShow() methods). You can also set the rowHeaderColumns property to an empty array to remove...

How to add style to cells

Answered: In the Pro version, you can use the onBeforeCellRender event handler to customize the calendar cells - you can add custom CSS class to selected cells or modify the appearance directly. Unfortunately,...

Custom onTimeRangeSelecting Start and End selection

Answered: This happens because snap-to-grid is turned on. You will need to turn it off, at least for the time range selection. There is a tutorial that shows how to customize the time range selection in real t...

Some requests for next release

Answered: The option to turn the snap-to-grid behavior off is already implemented and it is available in the latest release ( 2023.4.5838 ). It works for event moving, event resizing and time range selection. ...

Open menu on calendar header clicked.

Answered: At this moment, there is not built-in property for specifying a context menu for the calendar headers but you can use one of the following options: 1. Use an active area with action: "ContextMenu" an...

Hour indication is not next to the line.

Answered: Sorry for the delay! The header cell is marked with calendar_default_rowheader CSS class which applies overflow: false style to the cell. In order to shift the content (hour label) out of the cell yo...