Skip to content

Commit f4ed89d

Browse files
committed
[update] formatting fixed
1 parent 43b554d commit f4ed89d

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

docs/guides/configuration.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const table = new pivot.Pivot("#root", {
235235

236236
## Freezing columns
237237

238-
The widget allows freezing columns on the left or right side, which makes the columns static and visible while scrolling. To freeze columns, apply the **split** parameter of the [`tableShape`](/api/config/tableshape-property) property by setting the value of the `left` or `right` property to **true**.
238+
The widget allows freezing columns on the left or right side, which makes the columns static and visible while scrolling. To freeze columns, apply the **split** parameter of the [`tableShape`](/api/config/tableshape-property) property by setting the value of the `left` or `right` parameter to **true**. More details with examples, see below.
239239

240240
### Fixing columns on the left
241241

@@ -312,29 +312,29 @@ The `right` parameter of the [`tableShape`](/api/config/tableshape-property) pro
312312

313313
~~~jsx
314314
const widget = new pivot.Pivot("#pivot", {
315-
fields,
315+
fields,
316316
data: dataset,
317317
tableShape:{
318318
split: {right: true},// fixes total columns
319319
totalColumn: true,
320320
},
321321
config: {
322-
rows: [
323-
"hobbies"
324-
],
325-
columns: [
326-
"relationship_status"
327-
],
328-
values: [
329-
{
330-
field: "age",
331-
method: "min"
332-
},
333-
{
334-
field: "age",
335-
method: "max"
336-
}
337-
]
322+
rows: [
323+
"hobbies"
324+
],
325+
columns: [
326+
"relationship_status"
327+
],
328+
values: [
329+
{
330+
field: "age",
331+
method: "min"
332+
},
333+
{
334+
field: "age",
335+
method: "max"
336+
}
337+
]
338338
}
339339
});
340340
~~~
@@ -343,25 +343,25 @@ To fix custom columns on the right, you need to apply the table API via the [`re
343343

344344
~~~jsx
345345
const widget = new pivot.Pivot("#pivot", {
346-
fields,
346+
fields,
347347
data: dataset,
348348
config: {
349-
rows: [
350-
"hobbies"
351-
],
352-
columns: [
353-
"relationship_status"
354-
],
355-
values: [
356-
{
357-
field: "age",
358-
method: "min"
359-
},
360-
{
361-
field: "age",
362-
method: "max"
363-
}
364-
]
349+
rows: [
350+
"hobbies"
351+
],
352+
columns: [
353+
"relationship_status"
354+
],
355+
values: [
356+
{
357+
field: "age",
358+
method: "min"
359+
},
360+
{
361+
field: "age",
362+
method: "max"
363+
}
364+
]
365365
}
366366
});
367367

0 commit comments

Comments
 (0)