Skip to main content

Gantt methods

api.detach()Allows removing/detaching action handlers
api.exec()Allows triggering Gantt actions
api.getCalendar()Returns a calendar instance from the registry, or the global calendar
api.getReactiveState()Gets the state object with the reactive properties of Gantt
api.getResourceTasks(id)Gets all tasks assigned to a resource
api.getState()Gets the state object that stores current values of most Gantt properties
api.getStores()Gets an object with the DataStore properties of Gantt
api.getTable()Gets the Table API instance
api.getTask(id)Gets an object with the task configuration
api.getTaskResources(id)Gets all resources assigned to a task
api.intercept()Allows intercepting and blocking/modifying actions
api.on()Allows attaching a handler to the inner events
api.serialize()Serializes and returns the data of the current Gantt configuration
api.setNext()Allows adding some action into the Event Bus order