Skip to content

Commit b347ec4

Browse files
Integrated latest changes at 06-10-2024 7:30:32 PM
1 parent b4a6494 commit b347ec4

File tree

41 files changed

+540
-86017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+540
-86017
lines changed

ej2-react-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@
896896
<li><a href="/ej2-react/document-editor/dialog">Dialog</a></li>
897897
<li><a href="/ej2-react/document-editor/right-to-left">RTL</a></li>
898898
<li><a href="/ej2-react/document-editor/chart">Chart</a></li>
899+
<li><a href="/ej2-react/document-editor/content-control">Content Control</a></li>
899900
<li><a href="/ej2-react/document-editor/restrict-editing">Restrict Editing</a></li>
900901
<li><a href="/ej2-react/document-editor/spell-check">SpellCheck</a></li>
901902
<li><a href="/ej2-react/document-editor/global-local">Globalization</a></li>

ej2-react/code-snippet/pivot-table/getting-started-cs1/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { PivotViewComponent } from '@syncfusion/ej2-react-pivotview';
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1515
};
1616
let pivotObj;
1717
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings}>

ej2-react/code-snippet/pivot-table/getting-started-cs1/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { IDataOptions, IDataSet, PivotViewComponent } from '@syncfusion/ej2-reac
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1717
};
1818
let pivotObj: PivotViewComponent;
1919
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings}>

ej2-react/code-snippet/pivot-table/getting-started-cs1/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs1/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs2/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { PivotViewComponent } from '@syncfusion/ej2-react-pivotview';
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1515
};
1616
let pivotObj;
1717
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings}>

ej2-react/code-snippet/pivot-table/getting-started-cs2/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { IDataOptions, IDataSet, PivotViewComponent } from '@syncfusion/ej2-reac
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1717
};
1818
let pivotObj: PivotViewComponent;
1919
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings}>

ej2-react/code-snippet/pivot-table/getting-started-cs2/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs2/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs3/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { FieldList, Inject, PivotViewComponent } from '@syncfusion/ej2-react-piv
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1515
};
1616
let pivotObj;
1717
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} showFieldList={true}><Inject services={[FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs3/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { FieldList, IDataOptions, IDataSet, Inject, PivotViewComponent } from '@
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1717
};
1818
let pivotObj: PivotViewComponent;
1919
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} showFieldList={true}><Inject services={[FieldList]} />

ej2-react/code-snippet/pivot-table/getting-started-cs3/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs3/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs4/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { Inject, PivotViewComponent, GroupingBar } from '@syncfusion/ej2-react-p
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
formatSettings: [{ name: 'Amount', format: 'C0' }],
12-
rows: [{ name: 'Country' }, { name: 'Products' }],
13-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
12+
rows: [{ name: 'Country' }, { name: 'State' }],
13+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1414
};
1515
let pivotObj;
1616
return (<PivotViewComponent id='PivotView' height={350} dataSourceSettings={dataSourceSettings} showGroupingBar={true}><Inject services={[GroupingBar]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs4/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { IDataOptions, IDataSet, Inject, PivotViewComponent, GroupingBar } from
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
formatSettings: [{ name: 'Amount', format: 'C0' }],
14-
rows: [{ name: 'Country' }, { name: 'Products' }],
15-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
14+
rows: [{ name: 'Country' }, { name: 'State' }],
15+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1616
};
1717
let pivotObj: PivotViewComponent;
1818
return (<PivotViewComponent id='PivotView' height={350} dataSourceSettings={dataSourceSettings} showGroupingBar={true}><Inject services={[GroupingBar]} />

ej2-react/code-snippet/pivot-table/getting-started-cs4/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs4/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs5/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { CalculatedField, FieldList, Inject, PivotViewComponent } from '@syncfus
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [{ name: 'Quarter' }],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1515
};
1616
let pivotObj;
1717
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} allowCalculatedField={true} showFieldList={true}><Inject services={[CalculatedField, FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs5/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { CalculatedField, FieldList, IDataOptions, IDataSet, Inject, PivotViewCo
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [{ name: 'Quarter' }],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1717
};
1818
let pivotObj: PivotViewComponent;
1919
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} allowCalculatedField={true} showFieldList={true}><Inject services={[CalculatedField, FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs5/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs5/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs6/app/App.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { CalculatedField, FieldList, Inject, PivotViewComponent } from '@syncfus
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }, { name: 'Total', caption: 'Total Units', type: 'CalculatedField' }],
15-
calculatedFieldSettings: [{ name: 'Total', formula: '"Sum(Amount)"+"Sum(Sold)"' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }, { name: 'Total', caption: 'Total Units', type: 'CalculatedField' }],
15+
calculatedFieldSettings: [{ name: 'Total', formula: '"Sum(Amount)"+"Sum(Quantity)"' }]
1616
};
1717
let pivotObj;
1818
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} allowCalculatedField={true} showFieldList={true}><Inject services={[CalculatedField, FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs6/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { CalculatedField, FieldList, IDataOptions, IDataSet, Inject, PivotViewCo
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }, { name: 'Total', caption: 'Total Units', type: 'CalculatedField' }],
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }, { name: 'Total', caption: 'Total Units', type: 'CalculatedField' }],
1717
calculatedFieldSettings: [{ name: 'Total', formula: '"Sum(Amount)"+"Sum(Sold)"' }]
1818
};
1919
let pivotObj: PivotViewComponent;

ej2-react/code-snippet/pivot-table/getting-started-cs6/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs6/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs7/app/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { CalculatedField, FieldList, Inject, PivotViewComponent } from '@syncfus
44
import { pivotData } from './datasource';
55
function App() {
66
const dataSourceSettings = {
7-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
7+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
88
dataSource: pivotData,
99
expandAll: false,
1010
filters: [],
1111
drilledMembers: [{ name: 'Country', items: ['France'] }],
1212
formatSettings: [{ name: 'Amount', format: 'C0' }],
13-
rows: [{ name: 'Country' }, { name: 'Products' }],
14-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
13+
rows: [{ name: 'Country' }, { name: 'State' }],
14+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1515
};
1616
let pivotObj;
1717
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} allowCalculatedField={true} showFieldList={true}><Inject services={[CalculatedField, FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs7/app/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { CalculatedField, FieldList, IDataOptions, IDataSet, Inject, PivotViewCo
66
import { pivotData } from './datasource';
77
function App() {
88
const dataSourceSettings: IDataOptions = {
9-
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
9+
columns: [{ name: 'Date', caption: 'Date' }, { name: 'Product' }],
1010
dataSource: pivotData as IDataSet[],
1111
expandAll: false,
1212
filters: [],
1313
drilledMembers: [{ name: 'Country', items: ['France'] }],
1414
formatSettings: [{ name: 'Amount', format: 'C0' }],
15-
rows: [{ name: 'Country' }, { name: 'Products' }],
16-
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
15+
rows: [{ name: 'Country' }, { name: 'State' }],
16+
values: [{ name: 'Amount', caption: 'Sold Amount' }, { name: 'Quantity', caption: 'Quantity' }]
1717
};
1818
let pivotObj: PivotViewComponent;
1919
return (<PivotViewComponent ref={d => pivotObj = d} id='PivotView' height={350} dataSourceSettings={dataSourceSettings} allowCalculatedField={true} showFieldList={true}><Inject services={[CalculatedField, FieldList]}/>

ej2-react/code-snippet/pivot-table/getting-started-cs7/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs7/app/datasource.tsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { HtmlEditor, Image, Inject, Link, QuickToolbar, RichTextEditorComponent, Table, Toolbar } from '@syncfusion/ej2-react-richtexteditor';
2+
import * as React from 'react';
3+
function App() {
4+
let toolbarSettings = {
5+
items: ['CreateTable']
6+
};
7+
let quickToolbarSettings = {
8+
table: ['TableHeader', 'TableRows', 'TableColumns', 'TableCell', '-', 'BackgroundColor', 'TableRemove', 'TableCellVerticalAlign', 'Styles']
9+
};
10+
return (<RichTextEditorComponent height={450} toolbarSettings={toolbarSettings} quickToolbarSettings={quickToolbarSettings}>
11+
<h2>Discover the Table's Powerful Features</h2><p>A table can be created in the editor using either a keyboard shortcut or the toolbar. With the quick
12+
toolbar, you can
13+
perform table cell insert, delete, split, and merge operations. You can style the table cells using
14+
background
15+
colours and borders.</p><table class="e-rte-table" style="width: 100%; min-width: 0px; height: 151px">
16+
<thead>
17+
<tr>
18+
<th><span>Name</span><br/></th>
19+
<th><span>Age</span><br/></th>
20+
<th><span>Gender</span><br/></th>
21+
<th><span>Occupation</span><br/></th>
22+
</tr>
23+
</thead>
24+
<tbody>
25+
<tr>
26+
<td>Selma Rose</td>
27+
<td>30</td>
28+
<td>Female</td>
29+
<td><span>Engineer</span><br/></td>
30+
</tr>
31+
<tr>
32+
<td><span>Robert</span><br/></td>
33+
<td>28</td>
34+
<td>Male</td>
35+
<td><span>Graphic Designer</span></td>
36+
</tr>
37+
<tr>
38+
<td><span>William</span><br/></td>
39+
<td>35</td>
40+
<td>Male</td>
41+
<td>Teacher</td>
42+
</tr>
43+
</tbody>
44+
</table>
45+
<Inject services={[Toolbar, Image, Link, HtmlEditor, QuickToolbar, Table]}/>
46+
</RichTextEditorComponent>);
47+
}
48+
export default App;
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
3+
4+
import { HtmlEditor, Image, Inject, Link, QuickToolbar, RichTextEditorComponent, Table, Toolbar } from '@syncfusion/ej2-react-richtexteditor';
5+
import * as React from 'react';
6+
7+
function App() {
8+
let toolbarSettings: object = {
9+
items: ['CreateTable']
10+
}
11+
let quickToolbarSettings: object = {
12+
table: ['TableHeader', 'TableRows', 'TableColumns', 'TableCell', '-', 'BackgroundColor', 'TableRemove', 'TableCellVerticalAlign', 'Styles']
13+
}
14+
15+
return (
16+
<RichTextEditorComponent height={450} toolbarSettings={toolbarSettings} quickToolbarSettings={quickToolbarSettings}>
17+
<h2>Discover the Table's Powerful Features</h2><p>A table can be created in the editor using either a keyboard shortcut or the toolbar. With the quick
18+
toolbar, you can
19+
perform table cell insert, delete, split, and merge operations. You can style the table cells using
20+
background
21+
colours and borders.</p><table class="e-rte-table" style="width: 100%; min-width: 0px; height: 151px">
22+
<thead>
23+
<tr>
24+
<th><span>Name</span><br/></th>
25+
<th><span>Age</span><br/></th>
26+
<th><span>Gender</span><br/></th>
27+
<th><span>Occupation</span><br/></th>
28+
</tr>
29+
</thead>
30+
<tbody>
31+
<tr>
32+
<td>Selma Rose</td>
33+
<td>30</td>
34+
<td>Female</td>
35+
<td><span>Engineer</span><br/></td>
36+
</tr>
37+
<tr>
38+
<td><span>Robert</span><br/></td>
39+
<td>28</td>
40+
<td>Male</td>
41+
<td><span>Graphic Designer</span></td>
42+
</tr>
43+
<tr>
44+
<td><span>William</span><br/></td>
45+
<td>35</td>
46+
<td>Male</td>
47+
<td>Teacher</td>
48+
</tr>
49+
</tbody>
50+
</table>
51+
<Inject services={[Toolbar, Image, Link, HtmlEditor, QuickToolbar, Table]} />
52+
</RichTextEditorComponent>
53+
);
54+
}
55+
56+
export default App;
57+
58+
59+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as React from 'react';
2+
import * as ReactDOM from 'react-dom';
3+
import App from './App';
4+
5+
ReactDOM.render(<App />, document.getElementById('sample'));

0 commit comments

Comments
 (0)