Last active
February 18, 2018 20:55
-
-
Save glucn/98e35b13eea08154398fad60a5f01876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dhtmlx-gantt'; | |
// or more explicitly, | |
// import * as gantt from 'dhtmlx-gantt'; | |
@Component({ | |
selector: "gantt-chart", | |
template: "<div #gantt></div>", | |
styleUrls: ['./styles.scss'] | |
}) | |
export class GanttChartComponent implements OnInit { | |
@ViewChild("gantt") ganttContainer: ElementRef; | |
ngOnInit(){ | |
gantt.init(this.ganttContainer.nativeElement); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment