31
31
font-size : 0.775em ;
32
32
}
33
33
</ style >
34
- <!-- < script src="./src/index. js"></script> -- >
34
+ < script src ="dist/frappe-gantt.umd. js "> </ script >
35
35
</ head >
36
36
< body >
37
37
< div class ="container ">
@@ -338,22 +338,20 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
338
338
{
339
339
start : daysSince ( - 2 ) ,
340
340
end : daysSince ( 2 ) ,
341
- name : 'Write new content' ,
342
- id : 'Task 1' ,
343
- progress : 5 ,
344
- // important: true,
345
- group : 0 ,
346
- } ,
347
- {
348
341
name : 'Redesign website' ,
349
342
id : 'Task 0' ,
350
343
progress : random ( ) ,
351
- group : 0 ,
352
344
} ,
353
345
{
354
346
start : daysSince ( 3 ) ,
347
+ duration : '6d' ,
348
+ name : 'Write new content' ,
349
+ id : 'Task 1' ,
355
350
progress : random ( ) ,
351
+ important : true ,
356
352
dependencies : 'Task 0' ,
353
+ } ,
354
+ {
357
355
start : daysSince ( 4 ) ,
358
356
duration : '2d' ,
359
357
name : 'Apply new styles' ,
@@ -376,6 +374,15 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
376
374
name : 'Redesign website' ,
377
375
id : 'Task 0' ,
378
376
progress : random ( ) ,
377
+ group : 0 ,
378
+ } ,
379
+ {
380
+ start : daysSince ( - 5 ) ,
381
+ end : daysSince ( 0 ) ,
382
+ name : 'Redesign website - part 2' ,
383
+ id : 'Task 0' ,
384
+ progress : random ( ) ,
385
+ group : 0 ,
379
386
} ,
380
387
{
381
388
start : daysSince ( - 15 ) ,
@@ -384,20 +391,32 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
384
391
id : 'Task 1' ,
385
392
progress : random ( ) ,
386
393
important : true ,
394
+ group : 1 ,
395
+ } ,
396
+ {
397
+ start : daysSince ( 7 ) ,
398
+ duration : '2d' ,
399
+ name : 'Edit new content' ,
400
+ id : 'Task 1' ,
401
+ progress : random ( ) ,
402
+ important : true ,
403
+ group : 1 ,
387
404
} ,
388
405
{
389
406
start : daysSince ( 10 ) ,
390
407
duration : '14d' ,
391
408
name : 'Review' ,
392
409
id : 'Task 3' ,
393
410
progress : random ( ) ,
411
+ group : 2 ,
394
412
} ,
395
413
{
396
414
start : daysSince ( - 3 ) ,
397
415
duration : '4d' ,
398
416
name : 'Publish' ,
399
417
id : 'Task 4' ,
400
418
progress : random ( ) ,
419
+ group : 3 ,
401
420
} ,
402
421
] ;
403
422
@@ -463,6 +482,7 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
463
482
duration : '7d' ,
464
483
name : 'Create prototype' ,
465
484
id : 'Task 3' ,
485
+ dependencies : 'Task 2' ,
466
486
progress : random ( ) ,
467
487
} ,
468
488
{
@@ -474,9 +494,11 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
474
494
progress : random ( ) ,
475
495
important : true ,
476
496
} ,
497
+ {
477
498
start : daysSince ( 5 ) ,
478
499
end : daysSince ( 10 ) ,
479
500
name : 'Write technical documentation' ,
501
+ id : 'Task 5' ,
480
502
progress : random ( ) ,
481
503
} ,
482
504
{
@@ -508,6 +530,7 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
508
530
id : 'Task 9' ,
509
531
progress : random ( ) ,
510
532
important : true ,
533
+ } ,
511
534
] ;
512
535
513
536
const HOLIDAYS = [
@@ -534,15 +557,17 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
534
557
today_button : true ,
535
558
view_mode_select : true ,
536
559
holidays : null ,
560
+ enable_grouping : true ,
561
+ groups : [ 0 , 1 , 2 , 3 ] ,
537
562
} ) ;
538
563
539
564
const holidays = new Gantt ( '#holidays' , tasksSpread , {
540
565
holidays : {
541
566
'#bfdbfe' : [ ] ,
542
567
'#a3e635' : HOLIDAYS ,
543
568
} ,
544
- enable_grouping : true ,
545
- groups : [ 0 , 1 , 2 , 3 , 4 ] ,
569
+ enable_grouping : true ,
570
+ groups : [ 0 , 1 , 2 , 3 ] ,
546
571
} ) ;
547
572
548
573
const ignore = new Gantt ( '#ignore' , tasks , {
@@ -562,6 +587,8 @@ <h2>Frappe Gantt - <em>for you</em>.</h2>
562
587
snap_at : '1d' ,
563
588
auto_move_label : false ,
564
589
scroll_to : 'today' ,
590
+ enable_grouping : true ,
591
+ groups : [ 0 , 1 , 2 , 3 ] ,
565
592
} ) ;
566
593
567
594
const UPDATES = [
0 commit comments