$().dmGantt()
Questo componente permette di mostrare un Gantt, configurarne le attività , assegnarne le risorse e gestirne le dipendenze.
Il seguente codice mostra come costruire il componente passandogli dei parametri ed ottenerne l'istanza per invocare successivamente dei metodi;
<div id="container"></div>
<script>
$('#container').dmGantt({
...oggetto contenente i parametri...
idGantt: "7c9e6679-7425-40de-944b-e07fc1f90ae7",
});
let instance = $('#container').dmGantt('instance');
...
instance.refresh();
</script>
Elenco parametri
- idGantt
- ganttExternalId
- sessionId
- height
- width
- popup
- popupOptions
- saveLayout
- loadLayout
- layoutId
- layoutUserId
- defaultLayout
- scaleType
- enabled
- readOnly
- allowSelection
- startDateRange
- endDateRange
- allowSaving
- allowDependencyAdding
- allowDependencyDeleting
- allowResourceAdding
- allowResourceDeleting
- allowResourceUpdating
- allowTaskAdding
- allowTaskDeleting
- allowTaskUpdating
- allowTaskResourceUpdating
- allowDragAndDrop
- allowLocking
- allowColumnChooser
- showSearchPanel
- allowKanbanOfSecurityIdentities
- allowGanttTrend
- allowUsersEmployment
- showAddDependenceButton
- showDependencies
- showResources
- showFilterRow
- firstDayOfWeek
- tabIndex
- taskListWidth
- taskTitlePosition
- showRefreshButton
- registerKeyBoardEventsGlobally
- updateDocumentTitle
Elenco metodi
- on
- off
- dispose
- focus
- error(msg)
- startLoading
- endLoading
- isAttached
- refresh(options?: { skipLoadData?: boolean })
- save
- reset
- getData
- getDataToSave
- getInstance
- option(optionName, optionValue)
- scrollToDate(date)
- newMilestone(data?: any)
- newTask(data?: any)
- insertTask(data: any)
- updateTask(key: string, data: any)
- updateTaskResourceAssignments(key: string, securityIdentityIds: Array | null)
- toggleMassiveUpdateMode
- getResources
- getAssignableResources