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
Copy file name to clipboardExpand all lines: docs/react_integration.md
+1-17
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ export default function DHTMLXSpreadsheet(props) {
111
111
112
112
#### Adding styles
113
113
114
-
To display Spreadsheet correctly, you need to provide the corresponding styles. You can use the **index.css** file to specify important styles for Spreadsheet and its container:
114
+
To display Spreadsheet correctly, you need to specify important styles for Spreadsheet and its container in the main css file of the project:
115
115
116
116
~~~css title="index.css"
117
117
/* specify styles for initial page */
@@ -241,22 +241,6 @@ useEffect(() => {
241
241
// ...
242
242
~~~
243
243
244
-
### Step 3. Adding Spreadsheet into the app
245
-
246
-
To add the component into the app, open the **App.js** file and replace the default code with the following one:
247
-
248
-
~~~jsx title="App.js"
249
-
importSpreadsheetfrom"./Spreadsheet";
250
-
import { getData } from"./data";
251
-
252
-
functionApp() {
253
-
let data =getData();
254
-
return<Spreadsheet data={data} />;
255
-
}
256
-
257
-
exportdefaultApp;
258
-
~~~
259
-
260
244
After that, you can start the app to see Spreadsheet loaded with data on a page.
Copy file name to clipboardExpand all lines: docs/vuejs_integration.md
+3-26
Original file line number
Diff line number
Diff line change
@@ -120,13 +120,13 @@ export default {
120
120
121
121
#### Adding styles
122
122
123
-
To display Spreadsheet correctly, you need to provide the corresponding styles. You can use any **.css** file to specify important styles for Spreadsheet and its container:
123
+
To display Spreadsheet correctly, you need to specify important styles for Spreadsheet and its container in the main css file of the project:
124
124
125
-
~~~css title="index.css"
125
+
~~~css title="main.css"
126
126
/* specify styles for initial page */
127
127
html,
128
128
body,
129
-
#root { /* make sure that you use the #root container */
129
+
#app { /* make sure that you use the #app root container */
130
130
height: 100%;
131
131
padding: 0;
132
132
margin: 0;
@@ -262,29 +262,6 @@ export default {
262
262
<!--...-->
263
263
~~~
264
264
265
-
### Step 3. Adding Spreadsheet into the app
266
-
267
-
To add the component into the app, open the **App.vue** file and replace the default code with the following one:
0 commit comments