@dhtmlx/trial-react-spreadsheet 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -0
- package/dist/fonts/roboto-bold-webfont.woff +0 -0
- package/dist/fonts/roboto-bold-webfont.woff2 +0 -0
- package/dist/fonts/roboto-medium-webfont.woff +0 -0
- package/dist/fonts/roboto-medium-webfont.woff2 +0 -0
- package/dist/fonts/roboto-regular-webfont.woff +0 -0
- package/dist/fonts/roboto-regular-webfont.woff2 +0 -0
- package/dist/spreadsheet.react.css +24 -0
- package/dist/spreadsheet.react.es.d.ts +633 -0
- package/dist/spreadsheet.react.es.js +61035 -0
- package/license.txt +43 -0
- package/package.json +44 -0
- package/whatsnew.md +647 -0
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# DHTMLX React Spreadsheet
|
|
2
|
+
|
|
3
|
+
[](https://dhtmlx.com/)
|
|
4
|
+
[](https://www.npmjs.com/package/@dhtmlx/trial-react-spreadsheet)
|
|
5
|
+
[](https://dhtmlx.com/docs/products/license.shtml?eval)
|
|
6
|
+
|
|
7
|
+
[Getting started](#getting-started) | [API overview](#api-overview) | [License](#license) | [Useful links](#links)
|
|
8
|
+
|
|
9
|
+
[DHTMLX React Spreadsheet](https://dhtmlx.com/docs/products/dhtmlxSpreadsheet/) is a React wrapper for the [DHTMLX Spreadsheet](https://dhtmlx.com/docs/products/dhtmlxSpreadsheet/) library.
|
|
10
|
+
|
|
11
|
+
[](https://snippet.dhtmlx.com/uulux27v?tag=spreadsheet&mode=wide)
|
|
12
|
+
|
|
13
|
+
It provides a declarative way to integrate DHTMLX Spreadsheet's Excel-like functionality — cell editing, formulas, formatting, filtering, sorting, multi-sheet support, and more — directly into React apps.
|
|
14
|
+
|
|
15
|
+
> **Important:** this npm package is a _trial_ build intended for evaluation only.
|
|
16
|
+
> For access to commercial licenses and technical support, please visit:
|
|
17
|
+
> https://dhtmlx.com/docs/products/dhtmlxSpreadsheet/download.shtml
|
|
18
|
+
|
|
19
|
+
<a name="getting-started"></a>
|
|
20
|
+
|
|
21
|
+
## Getting started
|
|
22
|
+
|
|
23
|
+
**Install package**
|
|
24
|
+
|
|
25
|
+
Professional Evaluation version:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install @dhtmlx/trial-react-spreadsheet
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
And initialize:
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import ReactSpreadsheet from "@dhtmlx/trial-react-spreadsheet";
|
|
35
|
+
import "@dhtmlx/trial-react-spreadsheet/spreadsheet.react.css";
|
|
36
|
+
import type { SheetData } from "@dhtmlx/trial-react-spreadsheet";
|
|
37
|
+
|
|
38
|
+
const sheets: SheetData[] = [
|
|
39
|
+
{
|
|
40
|
+
id: "sheet1",
|
|
41
|
+
name: "Sales",
|
|
42
|
+
cells: {
|
|
43
|
+
A1: { value: "Product" },
|
|
44
|
+
B1: { value: "Revenue", format: "currency" },
|
|
45
|
+
A2: { value: "Widget A" },
|
|
46
|
+
B2: { value: 1500, format: "currency" },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
export default function App() {
|
|
52
|
+
return (
|
|
53
|
+
<div style={{ width: "100%", height: "500px" }}>
|
|
54
|
+
<ReactSpreadsheet
|
|
55
|
+
sheets={sheets}
|
|
56
|
+
onAfterEditEnd={(cell, value) => {
|
|
57
|
+
console.log(`Cell ${cell} updated to: ${value}`);
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Requirements
|
|
66
|
+
|
|
67
|
+
- React `18.x` or newer
|
|
68
|
+
|
|
69
|
+
### Complete guides
|
|
70
|
+
|
|
71
|
+
- https://docs.dhtmlx.com/spreadsheet/
|
|
72
|
+
|
|
73
|
+
<a name="api-overview"></a>
|
|
74
|
+
|
|
75
|
+
## API overview
|
|
76
|
+
|
|
77
|
+
**Data** — `sheets`, `styles`, `activeSheet`, `search`, `loadUrl`
|
|
78
|
+
|
|
79
|
+
**Configuration** — `menu`, `editLine`, `toolbarBlocks`, `multiSheets`, `formats`, `readonly`, `rowsCount`, `colsCount`, `localization`, `importModulePath`, `exportModulePath`
|
|
80
|
+
|
|
81
|
+
**Appearance** — `theme` (light, dark, contrast-light, contrast-dark), `className`, `style`
|
|
82
|
+
|
|
83
|
+
**Events** — 21 callbacks covering actions, selection, editing, sheets, and data lifecycle (e.g. `onBeforeAction`, `onAfterEditEnd`, `onAfterSheetChange`, `onStateChange`)
|
|
84
|
+
|
|
85
|
+
**Ref API** — access the underlying DHTMLX instance via `SpreadsheetRef` for imperative operations (serialize, undo/redo, programmatic selection)
|
|
86
|
+
|
|
87
|
+
**TypeScript** — full type exports: `SheetData`, `CellData`, `SearchConfig`, `Actions` enum, and all event handler types
|
|
88
|
+
|
|
89
|
+
<a name="license"></a>
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
@license
|
|
94
|
+
|
|
95
|
+
DHTMLX Spreadsheet for React v.6.0.0 Evaluation
|
|
96
|
+
|
|
97
|
+
This software is covered by DHTMLX Evaluation License and purposed only for evaluation.
|
|
98
|
+
Contact sales@dhtmlx.com to get Commercial or Enterprise license.
|
|
99
|
+
Usage without proper license is prohibited.
|
|
100
|
+
|
|
101
|
+
(c) XB Software.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<a name="links"></a>
|
|
105
|
+
|
|
106
|
+
## Useful links
|
|
107
|
+
|
|
108
|
+
- [DHTMLX Spreadsheet product page](https://dhtmlx.com/docs/products/dhtmlxSpreadsheet/)
|
|
109
|
+
- [Official documentation](https://docs.dhtmlx.com/spreadsheet/)
|
|
110
|
+
- [Online examples](https://dhtmlx.com/react/demos/spreadsheet/)
|
|
111
|
+
- [Support forum](https://forum.dhtmlx.com/c/spreadsheet)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|