You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation.md
+27-16Lines changed: 27 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -299,9 +299,10 @@ The following options take a single numeric parameter; a value of 1 will enable
299
299
|_setShowEndWeekDate():_|Controls whether the major heading in "Day" view displays the week end-date in the appropriate format (see [below](#user-content-display-date-formats)), defaults to 1 (show date)|
300
300
|_setShowWeekends():_|Controls whether shows the weekend days in the Day view Format, defaults to 1 (show weekends)|
301
301
|_setShowDeps():_ |Controls display of dependancy lines, defaults to 1 (show dependencies)|
302
-
|_setEvents():_ |Controls events when a task is click in table data. You have to pass an object with the column and function. ex.: ` { taskname:console.log, res:console.log }`|
303
-
|_setEventClickRow():_ |Controls events when a task row is cliked. Pass a function to execute ex.: `function(e){console.log(e)}`|
304
-
|_setEventsChange():_ |Controls events when a task row is cliked. Pass a function to execute ex.: `{ taskname:function(task, event, cell, column){ console.log(task, event, cell, column); } }`|
302
+
|_setEvents():_ |Controls events when a task is click in table data. You have to pass an object with the column and function. ex.: ` vEvents: { taskname:console.log, res:console.log }`|
303
+
|_setEventClickRow():_ |Controls events when a task row is clicked. Pass a function to execute ex.: `vEventClickRow:function(e){console.log(e)}`|
304
+
|setEventClickCollapse():_ |Controls events when a group task is collapsed (open or close events). Pass a function to execute ex.: `vEventClickCollapse:function(e){console.log(e)}`|
305
+
|_setEventsChange():_ |Controls events when a task row is cliked. Pass a function to execute ex.: `vEventsChange: { taskname:function(task, event, cell, column){ console.log(task, event, cell, column); } }`|
305
306
|_setAdditionalHeaders:_ |Set object with headers values for additional columns . ex : `{ category: { title:'Category' }` }|
306
307
|_setColumnOrder:_ |Set order of the columns that will be displayed, the default value is : `[ 'vShowRes','vShowDur','vShowComp','vShowStartDate','vShowEndDate','vShowPlanStartDate','vShowPlanEndDate','vShowCost','vAdditionalHeaders','vShowAddEntries']` }|
307
308
|_setResources():_ |Set the list of possible resources, must be an array of objects, ex: `[{ id:1, name:'Mario' } , { id:2, name:'Henrique' }]`|
@@ -485,20 +486,30 @@ g.setOptions({
485
486
vUseSingleCell:10000, // Set the threshold at which we will only use one cell per table row (0 disables). Helps with rendering performance for large charts.
486
487
vFormatArr: ['Day', 'Week', 'Month', 'Quarter'], // Even with setUseSingleCell using Hour format on such a large chart can cause issues in some browsers
0 commit comments