Skip to content

Instantly share code, notes, and snippets.

@glucn
Last active February 18, 2018 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glucn/98e35b13eea08154398fad60a5f01876 to your computer and use it in GitHub Desktop.
Save glucn/98e35b13eea08154398fad60a5f01876 to your computer and use it in GitHub Desktop.
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