jsgantt-improved
Advanced tools
Comparing version 2.4.6 to 2.4.7
@@ -598,4 +598,3 @@ "use strict"; | ||
if (this.vTaskList[i].getBarText()) { | ||
console.log(vTaskWidth); | ||
var textBar = draw_utils_1.newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
draw_utils_1.newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
} | ||
@@ -602,0 +601,0 @@ this.vTaskList[i].setTaskDiv(vTmpDiv2); |
@@ -516,3 +516,2 @@ "use strict"; | ||
} | ||
// console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -519,0 +518,0 @@ path[task.pID].childrens = []; |
@@ -40,3 +40,5 @@ | ||
### a) Using Method() ### | ||
Using `g.AddTaskItemObject` method we have to pass all data in "key":"value" format, as shown below. Any numerica data, like pID below should be passed without quotes while text/character data like pName and any dates must be enclosed in quotes. Also, in this way we can pass any custom variables like "category" and "section" shown below. Adding such custom variables will **NOT** add corresponding columns in the data table on left side of gantt chart. Such custom variables can be then accessed inside jsgantt.js file by using `task.getDataObject().yourCustomAttr`. | ||
If you want to have custom variables data to be shown in the task table, you should set additional headers for these variables. See [Additional Headers](#AdditionalHeaders) below. | ||
```javascript | ||
@@ -77,2 +79,4 @@ | ||
This method takes only the variables defined above and explained below. You can **NOT** pass custom variables this way. | ||
| Parameter | Description | | ||
@@ -453,3 +457,3 @@ |:--------|:------------------------------------------------| | ||
Putting all this information together the final code to produce the chart included in the example index file provided is as follows: | ||
<span id='AdditionalHeaders'></span> | ||
```html | ||
@@ -558,2 +562,2 @@ <link href="jsgantt.css" rel="stylesheet" type="text/css"/> | ||
This temp div has class `gscrollbar-calculation-container`, so if you have top level styles you can't controll - you may add styles to this class to fix scrollbar calculation. | ||
This temp div has class `gscrollbar-calculation-container`, so if you have top level styles you can't controll - you may add styles to this class to fix scrollbar calculation. |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.4.6", | ||
"version": "2.4.7", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -659,4 +659,3 @@ import * as lang from './lang'; | ||
if (this.vTaskList[i].getBarText()) { | ||
console.log(vTaskWidth) | ||
const textBar = newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
} | ||
@@ -663,0 +662,0 @@ this.vTaskList[i].setTaskDiv(vTmpDiv2); |
@@ -532,3 +532,3 @@ | ||
} | ||
// console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -535,0 +535,0 @@ path[task.pID].childrens = []; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5318857
123339