Skip to content

Commit cb368d5

Browse files
Integrated latest changes at 11-16-2024 4:30:37 PM
1 parent 4e9339d commit cb368d5

File tree

40 files changed

+637
-75
lines changed

40 files changed

+637
-75
lines changed

ej2-react/accumulation-chart/dynamic-data-update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The [`addPoint`](https://ej2.syncfusion.com/react/documentation/api/chart/series
2727
{% endhighlight %}
2828
{% endtabs %}
2929

30-
{% previewsample "page.domainurl/samples/chart/series/addpoint-cs" %}
30+
{% previewsample "page.domainurl/code-snippet/chart/series/addpoint-cs" %}
3131

3232
## Removing an existing data point
3333

@@ -45,7 +45,7 @@ The [`removePoint`](https://ej2.syncfusion.com/react/documentation/api/chart/ser
4545
{% endhighlight %}
4646
{% endtabs %}
4747

48-
{% previewsample "page.domainurl/samples/chart/series/addpoint-cs1" %}
48+
{% previewsample "page.domainurl/code-snippet/chart/series/addpoint-cs1" %}
4949

5050
## Replacing entire data points
5151

@@ -63,4 +63,4 @@ To replace the existing data source in the accumulation chart with a new data so
6363
{% endhighlight %}
6464
{% endtabs %}
6565

66-
{% previewsample "page.domainurl/samples/chart/series/addpoint-cs3" %}
66+
{% previewsample "page.domainurl/code-snippet/chart/series/addpoint-cs3" %}

ej2-react/accumulation-chart/pie-dough-nut.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You can create rounded corners for each slice using the [`borderRadius`](https:/
130130
{% endhighlight %}
131131
{% endtabs %}
132132

133-
{% previewsample "page.domainurl/samples/chart/series/pie-cs39" %}
133+
{% previewsample "page.domainurl/code-snippet/chart/series/pie-cs39" %}
134134

135135
## Customization
136136

@@ -176,7 +176,7 @@ You can apply different patterns to the pie slices using the [`applyPattern`](ht
176176
{% endhighlight %}
177177
{% endtabs %}
178178

179-
{% previewsample "page.domainurl/samples/chart/series/pie-cs40" %}
179+
{% previewsample "page.domainurl/code-snippet/chart/series/pie-cs40" %}
180180

181181
## Multi-level pie chart
182182

ej2-react/chart/zooming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Use the [`enableAnimation`](https://ej2.syncfusion.com/react/documentation/api/c
129129
{% endhighlight %}
130130
{% endtabs %}
131131

132-
{% previewsample "page.domainurl/samples/chart/user-interaction/zoom-cs10" %}
132+
{% previewsample "page.domainurl/code-snippet/chart/user-interaction/zoom-cs10" %}
133133

134134
## Enable pan
135135

ej2-react/code-snippet/common/fluent2-cs1/app/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ function App() {
88
const [isChecked, setIsChecked] = useState(false);
99

1010
const handleCheckboxChange = (event) => {
11-
setIsChecked(event.target.checked);
11+
setIsChecked(event.checked);
1212

1313
// Add or remove the classes on the body element based on the checkbox state
1414
const body = document.body;
1515

16-
if (event.target.checked) {
17-
body.classList.add('dark');
16+
if (event.checked) {
1817
body.classList.add('dark');
18+
body.classList.add('e-dark-mode');
1919
} else {
20-
body.classList.remove('e-dark-mode');
20+
body.classList.remove('dark');
2121
body.classList.remove('e-dark-mode');
2222
}
2323
};
2424
return (<div>
2525
{/* Primary Button - Used to represent a primary action. */}
26-
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} onChange={handleCheckboxChange}/><br/>
26+
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} change={handleCheckboxChange}/><br/>
2727
<ButtonComponent cssClass='e-primary'>button</ButtonComponent>
2828

2929
{/* Success Button - Used to represent a positive action. */}

ej2-react/code-snippet/common/fluent2-cs1/app/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import {ButtonComponent, CheckBoxComponent} from '@syncfusion/ej2-react-buttons';
33
import { enableRipple } from '@syncfusion/ej2-base';
4+
import { ChangeEventArgs } from '@syncfusion/ej2-buttons';
45
import * as React from 'react';
56
import * as ReactDom from 'react-dom';
67
import { useState } from 'react';
@@ -9,11 +10,12 @@ enableRipple(true);
910
function App() {
1011
const [isChecked, setIsChecked] = useState(false);
1112

12-
const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {
13-
setIsChecked(event.target.checked);
13+
const handleCheckboxChange = (event: ChangeEventArgs) => {
14+
const checked = event.checked ?? false;
15+
setIsChecked(checked);
1416

1517
// Add or remove the class on the body element based on the checkbox state
16-
if (event.target.checked) {
18+
if (checked) {
1719
document.body.classList.add('dark');
1820
document.body.classList.add('e-dark-mode');
1921
} else {
@@ -24,7 +26,7 @@ function App() {
2426
return (
2527
<div>
2628
{ /* checkbox - Used to represent checkbox. */ }
27-
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} onChange={handleCheckboxChange}/><br/>
29+
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} change={handleCheckboxChange}/><br/>
2830
{ /* Primary Button - Used to represent a primary action. */ }
2931
<ButtonComponent cssClass='e-primary'>Button</ButtonComponent>
3032

ej2-react/code-snippet/common/fluent2-cs2/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--color-sf-primary: 104, 134, 164;
2+
--color-sf-primary: #6886a4;
33
}
44

55
button {

ej2-react/code-snippet/common/material3-cs1/app/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ function App() {
88
const [isChecked, setIsChecked] = useState(false);
99

1010
const handleCheckboxChange = (event) => {
11-
setIsChecked(event.target.checked);
11+
setIsChecked(event.checked);
1212

1313
// Add or remove the classes on the body element based on the checkbox state
1414
const body = document.body;
1515

16-
if (event.target.checked) {
17-
body.classList.add('dark');
16+
if (event.checked) {
1817
body.classList.add('dark');
18+
body.classList.add('e-dark-mode');
1919
} else {
20-
body.classList.remove('e-dark-mode');
20+
body.classList.remove('dark');
2121
body.classList.remove('e-dark-mode');
2222
}
2323
};
2424
return (<div>
2525
{/* Primary Button - Used to represent a primary action. */}
26-
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} onChange={handleCheckboxChange}/><br/>
26+
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} change={handleCheckboxChange}/><br/>
2727
<ButtonComponent cssClass='e-primary'>button</ButtonComponent>
2828

2929
{/* Success Button - Used to represent a positive action. */}

ej2-react/code-snippet/common/material3-cs1/app/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import {ButtonComponent, CheckBoxComponent} from '@syncfusion/ej2-react-buttons';
33
import { enableRipple } from '@syncfusion/ej2-base';
4+
import { ChangeEventArgs } from '@syncfusion/ej2-buttons';
45
import * as React from 'react';
56
import * as ReactDom from 'react-dom';
67
import { useState } from 'react';
@@ -9,11 +10,12 @@ enableRipple(true);
910
function App() {
1011
const [isChecked, setIsChecked] = useState(false);
1112

12-
const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {
13-
setIsChecked(event.target.checked);
13+
const handleCheckboxChange = (event: ChangeEventArgs) => {
14+
const checked = event.checked ?? false;
15+
setIsChecked(checked);
1416

1517
// Add or remove the class on the body element based on the checkbox state
16-
if (event.target.checked) {
18+
if (checked) {
1719
document.body.classList.add('dark');
1820
document.body.classList.add('e-dark-mode');
1921
} else {
@@ -24,7 +26,7 @@ function App() {
2426
return (
2527
<div>
2628
{ /* checkbox - Used to represent checkbox. */ }
27-
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} onChange={handleCheckboxChange}/><br/>
29+
<CheckBoxComponent label="Enable Darkmode" checked={isChecked} change={handleCheckboxChange}/><br/>
2830
{ /* Primary Button - Used to represent a primary action. */ }
2931
<ButtonComponent cssClass='e-primary'>Button</ButtonComponent>
3032

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.e-grid .custom {
2+
background-color: #f48fb1 !important;/* csslint allow: important */
3+
color: white;
4+
}
5+
6+
.e-grid .custom {
7+
background-color: #fce4ec;
8+
color: white;
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.e-grid .custom {
2+
background-color: #f48fb1 !important;/* csslint allow: important */
3+
color: white;
4+
}
5+
6+
.e-grid .custom {
7+
background-color: #fce4ec;
8+
color: white;
9+
}

0 commit comments

Comments
 (0)