schedule-tasks
PRO
The functionality is available in PRO Edition only
Description
Triggers cascading updates of tasks in auto scheduling modeThe schedule-tasks action triggers recalculation of all tasks according to auto scheduling rules. It updates all dependent tasks based on end-to-start links, considering lag and project start constraints. Normally, this action is called automatically when tasks change (start, end, duration, or links), but it can also be invoked manually.
Usage
"schedule-tasks": () => void;
Parameters
The callback of the action takes no parameters.
Example
<script setup>
import { Gantt } from "@svar/vue-gantt";
import { Button } from "@svar-ui/vue-core";
import { getData } from "../data";
import { ref } from "vue";
const { tasks, links } = getData();
const api = ref(null);
function runSchedule() {
api.value.exec("schedule-tasks", {});
}
</script>
<template>
<Button :onclick="runSchedule">Apply Auto Schedule</Button>
<Gantt ref="api" :tasks="tasks" :links="links" :schedule="{ auto: true }" />
</template>
Related articles: