You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,17 +50,27 @@ Our library offers comprehensive support for a wide range of features, including
48
50
49
51
In version 2.1.0, we introduced a new feature called "convertTableToExcel," which enables the generation of an Excel file from a specified table or DOM element (table). The provided query is expected to be a valid input for the querySelector method. This enhancement allows for greater flexibility and convenience when creating Excel files directly from HTML tables.
50
52
53
+
We have four functions that are defined with specific use cases as follows:
54
+
55
+
-**`generateExcel`**: This is the primary and most important function that serves as the entry point for all other functions. Its responsibility is to generate an Excel file based on the received input data. We will provide examples of the various options that can be utilized.
56
+
57
+
-**`convertTableToExcel`**: This function is designed exclusively for **client-side** use. It requires passing a DOM element (a table element) as a parameter. The output of this function is an Excel file generated from the provided table.
58
+
59
+
-**`sideBySideLineByLine`**: This function offers the capability to generate a single-sheet Excel file containing multiple tables side by side and line by line.
60
+
61
+
-**`themeBaseGenerate`**: Within this function, we utilize color palettes from **https://colorhunt.co/**. It accepts data and a theme index as inputs, then generates an Excel file with the selected theme applied.[Thems](https://mohammadrezaeicode.github.io/mr-excel-them-page/)
62
+
51
63
## Installation
52
64
53
-
Via CDN
65
+
**Via CDN**
54
66
55
-
You can utilize our library, which comes bundled with Vite, by including the following link:
67
+
You can utilize our library, which comes bundled with **Vite**, by including the following link:
@@ -69,19 +81,19 @@ Easily integrate our library into your project using either of these methods, an
69
81
Using a Package Manager
70
82
To seamlessly integrate our library, you can install it using your preferred package manager:
71
83
72
-
Via npm:
84
+
**Via npm**:
73
85
74
86
```terminal/bash
75
87
npm install mr-excel
76
88
```
77
89
78
-
Using yarn:
90
+
Using **yarn**:
79
91
80
92
```terminal/bash
81
93
npm install mr-excel
82
94
```
83
95
84
-
Alternatively, you have the option to use pnpm:
96
+
Alternatively, you have the option to use **pnpm**:
85
97
86
98
```terminal/bash
87
99
npm install mr-excel
@@ -93,6 +105,262 @@ Choose the package manager that suits your workflow, and effortlessly bring the
93
105
94
106
After adding the library to your project, generating XLSX files becomes straightforward. You can achieve this by creating a data object similar to the code snippet below:
0 commit comments