The autoRefreshEnabled property (boolean) enables the AutoRefresh feature.
DayPilot.Gantt.autoRefreshEnabled
false
When enabled, the Gantt chart starts sending periodic auto-refresh requests.
Use DayPilot.Gantt.autoRefreshInterval to set the delay between requests, DayPilot.Gantt.autoRefreshMaxCount to limit how many requests are sent, and DayPilot.Gantt.autoRefreshCommand to define the command text.
const gantt = new DayPilot.Gantt("dp", {
autoRefreshEnabled: true,
// ...
});
gantt.init();
<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
autoRefreshEnabled: true,
// ...
};
<DayPilotGantt
autoRefreshEnabled={true}
{/* ... */}
/>
<DayPilotGantt :autoRefreshEnabled="true" <!-- ... --> />
DayPilot.Gantt.autoRefreshCommand
DayPilot.Gantt.autoRefreshInterval