UNPKG

suivi-dhx-trial-gantt

Version:

An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.

38 lines (31 loc) 987 B
<!DOCTYPE html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Show Task WBS Codes (Outline Numbers)</title> <script src="../../codebase/dhtmlxgantt.js?v=9.0.5"></script> <link rel="stylesheet" href="../../codebase/dhtmlxgantt.css?v=9.0.5"> <script src="../common/testdata.js?v=9.0.5"></script> <style> html, body { height: 100%; padding: 0px; margin: 0px; overflow: hidden; } </style> </head> <body> <div id="gantt_here" style='width:100%; height:100%;'></div> <script> gantt.config.auto_types = true; gantt.config.columns = [ {name: "wbs", label: "WBS", width: 60, resize: true, template: gantt.getWBSCode}, {name: "text", label: "Task name", tree: true, width: 170, resize: true}, {name: "start_date", align: "center", width: 100, resize: true}, {name: "duration", align: "center", width: 60, resize: true}, {name: "add", width: 40} ]; gantt.init("gantt_here"); gantt.parse(demo_tasks); </script> </body>