The rowCreateAllowTimeRangeSelection property (boolean) enables time range selection for the new task row in the JavaScript Gantt Chart.
DayPilot.Gantt.rowCreateAllowTimeRangeSelectiontrue - enables time range selection for the new task row.
false - keeps time range selection disabled for the new task row.
falseJavaScript
const gantt = new DayPilot.Gantt("dp", {
rowCreateHandling: "Enabled",
rowCreateAllowTimeRangeSelection: true,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
rowCreateHandling: "Enabled",
rowCreateAllowTimeRangeSelection: true,
// ...
};React
<DayPilotGantt
rowCreateHandling="Enabled"
rowCreateAllowTimeRangeSelection={true}
{/* ... */}
/>Vue
<DayPilotGantt
rowCreateHandling="Enabled"
:rowCreateAllowTimeRangeSelection="true"
<!-- ... -->
/>