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/guides/integration_with_react.md
+1-17Lines changed: 1 addition & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ export default function KanbanComponent(props) {
122
122
123
123
#### Adding styles
124
124
125
-
To display Kanban correctly, you need to provide the corresponding styles. You can use the **index.css** file to specify important styles for Kanban and containers:
125
+
To display Kanban correctly, you need to specify important styles for Kanban and its container in the main css file of the project:
126
126
127
127
~~~css title="index.css"
128
128
/* specify styles for initial page */
@@ -324,22 +324,6 @@ useEffect(() => {
324
324
// ...
325
325
~~~
326
326
327
-
### Step 3. Adding Kanban into the app
328
-
329
-
To add the component into the app, open the ***App.js*** file and replace the default code with the following one:
To display Kanban correctly, you need to specify important styles for Kanban and its container in the main css file of the project:
134
+
135
+
~~~css title="main.css"
136
+
/* specify styles for initial page */
137
+
html,
138
+
body,
139
+
#app { /* make sure that you use the #app root container */
140
+
height: 100%;
141
+
padding: 0;
142
+
margin: 0;
143
+
}
144
+
145
+
/* specify styles for Kanban and Toolbar container */
146
+
.component_container {
147
+
height: 100%;
148
+
margin: 0auto;
149
+
}
150
+
151
+
/* specify styles for Kanban container */
152
+
.widget {
153
+
height: calc(100%-56px);
154
+
}
155
+
~~~
156
+
131
157
#### Loading data
132
158
133
159
To add data into the Kanban, you need to provide a data set. You can create the ***data.js*** file in the ***src/*** directory and add some data into it:
0 commit comments