Skip to content

Commit

Permalink
Vue sample fixes (no inline element initialization needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
DlhSoftTeam committed Mar 23, 2020
1 parent c4dbb69 commit 2b0cf89
Show file tree
Hide file tree
Showing 162 changed files with 3 additions and 26 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class AppComponent implements OnInit {
ngOnInit() {
this.loadChartView = <LoadChartView.Element>(<HTMLElement>this.loadChartViewRef.nativeElement).firstChild;

// Optionally, initialize custom theme and templates (themes.js, templates.js).
// Optionally, initialize custom theme (themes.js).
initializeLoadChartTheme(this.settings, this.theme);
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class App extends React.Component {
currentTime: new Date(year, month, 2, 12, 0, 0)
};

// Optionally, initialize custom theme and templates (themes.js, templates.js).
// Optionally, initialize custom theme (themes.js).
initializeLoadChartTheme(settings, theme);

function onItemChanged(item, propertyName, isDirect, isFinal) {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ items[4].executionCost = 50;
settings.defaultResourceHourCost = 10;
settings.specificResourceHourCosts = [{ key: 'Resource 1', value: 20 }, { key: 'Material 2', value: 0.5 }];

// Optionally, initialize custom theme and templates (themes.js, templates.js).
// Optionally, initialize custom theme (themes.js).
initializeGanttChartTheme(settings, theme);
initializeGanttChartTemplates(settings, theme);

// Initialize the component.
var ganttChartView = GanttChartView.initialize(ganttChartViewElement, items, settings);

// Optionally, update the current time line periodically, e.g. every 5 minutes.
// setInterval(function () { ganttChartView.updateCurrentTime(); }, 5 * 60 * 1000);
// Define user command functions.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ var settings = {
// Optionally, initialize custom theme and templates (themes.js, templates.js).
initializeLoadChartTheme(settings, theme);

// Retrieve and store the control element for reference purposes.
var loadChartView = document.querySelector('#loadChartView');
// Initialize the component.
DlhSoft.Controls.LoadChartView.initialize(loadChartView, loadChartItems, settings);

var app = new Vue({
el: '#app',
data: {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ var settings = {
initializePertChartTheme(settings, theme);
initializePertChartTemplates(settings, theme);

// Retrieve and store the control element for reference purposes.
var networkDiagramView = document.querySelector('#networkDiagramView');
// Initialize the component.
DlhSoft.Controls.Pert.NetworkDiagramView.initialize(networkDiagramView, networkDiagramItems, settings);

var app = new Vue({
el: '#app',
data: {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ var settings = {
initializePertChartTheme(settings, theme);
initializePertChartTemplates(settings, theme);

// Retrieve and store the control element for reference purposes.
var pertChartView = document.querySelector('#pertChartView');
// Initialize the component.
DlhSoft.Controls.Pert.PertChartView.initialize(pertChartView, pertChartItems, settings);

var app = new Vue({
el: '#app',
data: {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ var settings = {
initializeGanttChartTheme(settings, theme);
initializeGanttChartTemplates(settings, theme);

// Retrieve and store the control element for reference purposes.
var scheduleChartViewElement = document.querySelector('#scheduleChartView');
// Initialize the component.
DlhSoft.Controls.ScheduleChartView.initialize(scheduleChartViewElement, scheduleChartItems, settings);

var originalItemPropertyChangeHandler = settings.itemPropertyChangeHandler;
var app = new Vue({
el: '#app',
Expand Down

0 comments on commit 2b0cf89

Please sign in to comment.