Skip to content

Commit e40fb4a

Browse files
Merge pull request #306 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents 4bfdb6e + b4cfd1f commit e40fb4a

File tree

28 files changed

+96
-69
lines changed

28 files changed

+96
-69
lines changed

ej2-javascript/card/js/es5-getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
3-
title: Es5 getting started with ##Platform_Name## Card control | Syncfusion
4-
description: Checkout and learn about Es5 getting started with ##Platform_Name## Card control of Syncfusion Essential JS 2 and more details.
3+
title: Es5 Getting Started with ##Platform_Name## Card Control | Syncfusion
4+
description: Checkout and learn about Es5 getting started with ##Platform_Name## Card control, it's elements, and more.
55
platform: ej2-javascript
66
control: Es5 getting started
77
publishingplatform: ##Platform_Name##
88
documentation: ug
99
domainurl: ##DomainURL##
1010
---
1111

12-
# Es5 getting started in ##Platform_Name## Card control
12+
# Es5 Getting Started in ##Platform_Name## Card Control
1313

1414
The Essential JS 2 for JavaScript (global script) is an ES5 formatted pure JavaScript framework that can be directly used in latest web browsers.
1515

@@ -114,7 +114,7 @@ The Essential JS 2 JavaScript components can be initialized by using any of the
114114

115115
You can create Card with a header in a specific structure. For adding header you need to create a `div` element with `e-card-header` class added.
116116

117-
* You can include heading inside the Card header by adding a `div` element with `e-card-header-caption` class, and also content will be added by adding element with `e-card-content`. For detailed information, refer to the [Header and Content](./header-content/).
117+
* You can include heading inside the Card header by adding a `div` element with `e-card-header-caption` class, and also content will be added by adding element with `e-card-content`. For detailed information, refer to the [Header and Content](./header-content).
118118

119119
```
120120
<div class = "e-card"> --> Root Element

ej2-javascript/chart/Chart-types/spline-area.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
3-
title: Spline area in ##Platform_Name## Chart control | Syncfusion
4-
description: Learn here all about Spline area in Syncfusion ##Platform_Name## Chart control of Syncfusion Essential JS 2 and more.
3+
title: Spline Area in ##Platform_Name## Chart Control | Syncfusion
4+
description: Learn here all about spline area in Syncfusion ##Platform_Name## Chart control, it's elements, and more.
55
platform: ej2-javascript
66
control: Spline area
77
publishingplatform: ##Platform_Name##
88
documentation: ug
99
domainurl: ##DomainURL##
1010
---
1111

12-
# Spline area Chart in ##Platform_Name## control
12+
# Spline area Chart in ##Platform_Name## Control
1313

1414
## Spline area
1515

@@ -79,5 +79,5 @@ The following properties can be used to customize the `spline area` series.
7979

8080
## See Also
8181

82-
* [Data label](../data-labels/)
83-
* [Tooltip](../tool-tip/)
82+
* [Data label](../data-labels)
83+
* [Tooltip](../tool-tip)

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/images/1.svg renamed to ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/1.svg

File renamed without changes.

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/images/2.svg renamed to ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/2.svg

File renamed without changes.

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/images/3.svg renamed to ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/3.svg

File renamed without changes.

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/images/4.svg renamed to ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/4.svg

File renamed without changes.

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/images/5.svg renamed to ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/5.svg

File renamed without changes.

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ var ganttChart = new ej.gantt.Gantt({
6262
});
6363
ganttChart.appendTo('#Gantt');
6464

65-
window.bgColor = (value, date) => {
65+
function bgColor (value, date){
6666
if (value === "S") {
6767
return "#7BD3EA"
6868
}
6969
const parsedDate = new Date(date);
70-
for (let i = 0; i < gantt.holidays.length; i++) {
71-
const holiday = gantt.holidays[i];
70+
for (let i = 0; i < ganttChart.holidays.length; i++) {
71+
const holiday = ganttChart.holidays[i];
7272
const fromDate = new Date(holiday.from);
7373
const toDate = new Date(holiday.to)
7474
if (parsedDate >= fromDate && parsedDate <= toDate) {
@@ -77,20 +77,20 @@ window.bgColor = (value, date) => {
7777
}
7878
return "#E0FBE2"
7979
};
80-
window.imagedate = () => {
80+
function imagedate () {
8181
const getImage = Math.floor(Math.random() * 5) + 1;
82-
return "./images/" + getImage + ".svg";
82+
return getImage + ".svg";
8383

8484
}
85-
window.holidayValue = (value, date) => {
85+
function holidayValue (value, date) {
8686

8787
const parsedDate = new Date(date);
88-
for (let i = 0; i < gantt.holidays.length; i++) {
89-
const holiday = gantt.holidays[i];
88+
for (let i = 0; i < ganttChart.holidays.length; i++) {
89+
const holiday = ganttChart.holidays[i];
9090
const fromDate = new Date(holiday.from);
9191
const toDate = new Date(holiday.to)
9292
if (parsedDate >= fromDate && parsedDate <= toDate) {
93-
const options: any = { weekday: 'short' };
93+
const options = { weekday: 'short' };
9494
return parsedDate.toLocaleDateString('en-US', options).toLocaleUpperCase();
9595
}
9696
}

ej2-javascript/code-snippet/gantt/gantt-tooltip-cs4/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gantt.Inject(Selection, Toolbar, DayMarkers, Edit, Filter);
2020
};
2121
(<{ imagedate?: Function }>window).imagedate = () => {
2222
const getImage = Math.floor(Math.random() * 5) + 1;
23-
return "./images/" + getImage + ".svg";
23+
return getImage + ".svg";
2424

2525
}
2626
(<{ holidayValue?: Function }>window).holidayValue = (value: string, date: string): string => {
@@ -36,7 +36,7 @@ Gantt.Inject(Selection, Toolbar, DayMarkers, Edit, Filter);
3636
}
3737
}
3838
return value
39-
}z
39+
}
4040

4141
let gantt: Gantt = new Gantt({
4242
dataSource: GanttData,

ej2-javascript/code-snippet/gantt/pdf-export-tasklabel-template-cs1/index.js

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,14 @@ var clickHandler = function (args) {
77
}
88
};
99
var pdfQueryTaskbarInfo = function(args){
10-
if (!args.data.hasChildRecords) {
11-
if (args.data.ganttProperties.resourceNames) {
12-
args.taskbarTemplate.image = [{
13-
width: 20, base64: (args).data.taskData.resourcesImage, height: 20
14-
}]
15-
}
16-
args.taskbarTemplate.value = args.data.TaskName;
17-
}
18-
if (args.data.hasChildRecords) {
19-
if (args.data.ganttProperties.resourceNames) {
20-
args.taskbarTemplate.image = [{
21-
width: 20, base64: (args).data.taskData.resourcesImage, height: 20
22-
}]
23-
}
24-
args.taskbarTemplate.value = args.data.TaskName;
25-
}
26-
if (args.data.ganttProperties.duration === 0) {
27-
if (args.data.ganttProperties.resourceNames) {
28-
args.taskbarTemplate.image = [{
29-
width: 20, base64: (args).data.taskData.resourcesImage, height: 20,
30-
}]
31-
}
32-
args.taskbarTemplate.value = args.data.TaskName
10+
args.labelSettings.leftLabel.value = args.data.ganttProperties.taskName + '[' + args.data.ganttProperties.progress + ']';
11+
if (args.data.ganttProperties.resourceNames) {
12+
args.labelSettings.rightLabel.value = args.data.ganttProperties.resourceNames;
13+
args.labelSettings.rightLabel.image = [{
14+
base64: args.data.taskData.resourcesImage, width: 20, height: 20
15+
}];
3316
}
17+
args.labelSettings.taskLabel.value = args.data.ganttProperties.progress + '%';
3418
}
3519
window.getResourceElements = function (value) {
3620
var out = "";

0 commit comments

Comments
 (0)