playbook_ui_docs 14.22.0.pre.alpha.PLAY22958843 → 14.22.0.pre.alpha.customheaderat8564
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +8 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +8 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +12 -12
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +3 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +12 -12
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +3 -3
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
- data/dist/playbook-doc.js +2 -2
- metadata +11 -14
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input.html.erb +0 -18
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_rails.md +0 -1
- /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
- /data/app/pb_kits/playbook/pb_typeahead/docs/{_typeahead_preserve_input_react.md → _typeahead_preserve_input.md} +0 -0
@@ -1,37 +1,36 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
import Button from '../../pb_button/_button'
|
6
5
|
|
7
6
|
const CircleChartLiveData = (props) => {
|
8
7
|
const [data, setData] = useState([
|
9
8
|
{
|
10
9
|
name: 'Waiting for Calls',
|
11
|
-
|
10
|
+
value: 41,
|
12
11
|
},
|
13
12
|
{
|
14
13
|
name: 'On Call',
|
15
|
-
|
14
|
+
value: 49,
|
16
15
|
},
|
17
16
|
{
|
18
17
|
name: 'After Call',
|
19
|
-
|
18
|
+
value: 10,
|
20
19
|
},
|
21
20
|
])
|
22
21
|
|
23
22
|
const data2 = [
|
24
23
|
{
|
25
24
|
name: 'Waiting for Calls',
|
26
|
-
|
25
|
+
value: 48,
|
27
26
|
},
|
28
27
|
{
|
29
28
|
name: 'On Call',
|
30
|
-
|
29
|
+
value: 12,
|
31
30
|
},
|
32
31
|
{
|
33
32
|
name: 'After Call',
|
34
|
-
|
33
|
+
value: 140,
|
35
34
|
},
|
36
35
|
]
|
37
36
|
|
@@ -39,12 +38,6 @@ const CircleChartLiveData = (props) => {
|
|
39
38
|
setData(data2)
|
40
39
|
}
|
41
40
|
|
42
|
-
const chartOptions = {
|
43
|
-
series: [{ data: data }],
|
44
|
-
}
|
45
|
-
|
46
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
47
|
-
|
48
41
|
return (
|
49
42
|
<div>
|
50
43
|
<Button
|
@@ -52,12 +45,13 @@ const CircleChartLiveData = (props) => {
|
|
52
45
|
text="Update Value"
|
53
46
|
{...props}
|
54
47
|
/>
|
55
|
-
<
|
56
|
-
|
57
|
-
|
48
|
+
<CircleChart
|
49
|
+
chartData={data}
|
50
|
+
id="circle-chart-live-data"
|
51
|
+
{...props}
|
58
52
|
/>
|
59
53
|
</div>
|
60
54
|
)
|
61
55
|
}
|
62
56
|
|
63
|
-
export default CircleChartLiveData
|
57
|
+
export default CircleChartLiveData
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import circleChartTheme from '../circleChartTheme'
|
3
|
+
import Highcharts from "highcharts"
|
4
|
+
import HighchartsReact from "highcharts-react-official"
|
5
|
+
|
6
|
+
const data = [
|
7
|
+
{
|
8
|
+
name: 'Waiting for Calls',
|
9
|
+
y: 41,
|
10
|
+
},
|
11
|
+
{
|
12
|
+
name: 'On Call',
|
13
|
+
y: 49,
|
14
|
+
},
|
15
|
+
{
|
16
|
+
name: 'After Call',
|
17
|
+
y: 10,
|
18
|
+
},
|
19
|
+
]
|
20
|
+
|
21
|
+
const baseOptions = {
|
22
|
+
series: [{ data: data }],
|
23
|
+
}
|
24
|
+
|
25
|
+
const CircleChartPbStyles = () => {
|
26
|
+
const options = Highcharts.merge({}, circleChartTheme, baseOptions )
|
27
|
+
|
28
|
+
return (
|
29
|
+
<div>
|
30
|
+
<HighchartsReact
|
31
|
+
highcharts={Highcharts}
|
32
|
+
options={options}
|
33
|
+
/>
|
34
|
+
</div>
|
35
|
+
);
|
36
|
+
};
|
37
|
+
|
38
|
+
export default CircleChartPbStyles;
|
@@ -0,0 +1 @@
|
|
1
|
+
You don't need to use the Circle Chart Kit to apply Playbook styles to your Highcharts circle chart. Just import circleChartTheme.ts and merge it with your chart options—Playbook’s styling will apply automatically.
|
@@ -1,45 +1,32 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataRounded = [
|
7
6
|
{
|
8
7
|
name: 'Waiting for Calls',
|
9
|
-
|
8
|
+
value: 41,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'On Call',
|
13
|
-
|
12
|
+
value: 49,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'After Call',
|
17
|
-
|
16
|
+
value: 10,
|
18
17
|
},
|
19
18
|
]
|
20
19
|
|
21
|
-
const CircleChartRounded = () =>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
34
|
-
|
35
|
-
return (
|
36
|
-
<div>
|
37
|
-
<HighchartsReact
|
38
|
-
highcharts={Highcharts}
|
39
|
-
options={options}
|
40
|
-
/>
|
41
|
-
</div>
|
42
|
-
)
|
43
|
-
}
|
20
|
+
const CircleChartRounded = (props) => (
|
21
|
+
<div>
|
22
|
+
<CircleChart
|
23
|
+
chartData={dataRounded}
|
24
|
+
id="default-test-rounded"
|
25
|
+
innerSize="lg"
|
26
|
+
rounded
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
</div>
|
30
|
+
)
|
44
31
|
|
45
|
-
export default CircleChartRounded
|
32
|
+
export default CircleChartRounded
|
@@ -1,61 +1,47 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithLabels = [
|
7
6
|
{
|
8
7
|
name: 'Facebook',
|
9
|
-
|
8
|
+
value: 2498,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'YouTube',
|
13
|
-
|
12
|
+
value: 2000,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'WhatsApp',
|
17
|
-
|
16
|
+
value: 2000,
|
18
17
|
},
|
19
18
|
{
|
20
19
|
name: 'Facebook Messenger',
|
21
|
-
|
20
|
+
value: 1300,
|
22
21
|
},
|
23
22
|
{
|
24
23
|
name: 'WeChat',
|
25
|
-
|
24
|
+
value: 1165,
|
26
25
|
},
|
27
26
|
{
|
28
27
|
name: 'Instagram',
|
29
|
-
|
28
|
+
value: 1000,
|
30
29
|
},
|
31
30
|
{
|
32
31
|
name: 'Tik Tok',
|
33
|
-
|
32
|
+
value: 800,
|
34
33
|
},
|
35
34
|
]
|
36
35
|
|
37
|
-
const CircleChartWithLabels = () =>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
50
|
-
|
51
|
-
return (
|
52
|
-
<div>
|
53
|
-
<HighchartsReact
|
54
|
-
highcharts={Highcharts}
|
55
|
-
options={options}
|
56
|
-
/>
|
57
|
-
</div>
|
58
|
-
)
|
59
|
-
}
|
36
|
+
const CircleChartWithLabels = (props) => (
|
37
|
+
<div>
|
38
|
+
<CircleChart
|
39
|
+
chartData={dataWithLabels}
|
40
|
+
dataLabels
|
41
|
+
id="with-labels-example"
|
42
|
+
{...props}
|
43
|
+
/>
|
44
|
+
</div>
|
45
|
+
)
|
60
46
|
|
61
|
-
export default CircleChartWithLabels
|
47
|
+
export default CircleChartWithLabels
|
@@ -1,41 +1,32 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithLegend = [{
|
7
6
|
name: 'Bugs',
|
8
|
-
|
7
|
+
value: 8,
|
8
|
+
|
9
9
|
},
|
10
10
|
{
|
11
11
|
name: 'Chores',
|
12
|
-
|
12
|
+
value: 1,
|
13
|
+
|
13
14
|
},
|
14
15
|
{
|
15
16
|
name: 'Stories',
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
const CircleChartWithLegendKit = () => {
|
20
|
-
const chartOptions = {
|
21
|
-
series: [{ data: dataWithLegend }],
|
22
|
-
plotOptions: {
|
23
|
-
pie: {
|
24
|
-
showInLegend: true
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
17
|
+
value: 12,
|
18
|
+
},
|
19
|
+
]
|
30
20
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
21
|
+
const CircleChartWithLegendKit = (props) => (
|
22
|
+
<div>
|
23
|
+
<CircleChart
|
24
|
+
chartData={dataWithLegend}
|
25
|
+
id="with-legend-example"
|
26
|
+
legend
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
</div>
|
30
|
+
)
|
40
31
|
|
41
|
-
export default CircleChartWithLegendKit
|
32
|
+
export default CircleChartWithLegendKit
|
@@ -1,55 +1,47 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithTitle = [
|
7
6
|
{
|
8
7
|
name: 'Facebook',
|
9
|
-
|
8
|
+
value: 2498,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'YouTube',
|
13
|
-
|
12
|
+
value: 2000,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'WhatsApp',
|
17
|
-
|
16
|
+
value: 2000,
|
18
17
|
},
|
19
18
|
{
|
20
19
|
name: 'Facebook Messenger',
|
21
|
-
|
20
|
+
value: 1300,
|
22
21
|
},
|
23
22
|
{
|
24
23
|
name: 'WeChat',
|
25
|
-
|
24
|
+
value: 1165,
|
26
25
|
},
|
27
26
|
{
|
28
27
|
name: 'Instagram',
|
29
|
-
|
28
|
+
value: 1000,
|
30
29
|
},
|
31
30
|
{
|
32
31
|
name: 'Tik Tok',
|
33
|
-
|
32
|
+
value: 800,
|
34
33
|
},
|
35
34
|
]
|
36
35
|
|
37
|
-
const
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<HighchartsReact
|
48
|
-
highcharts={Highcharts}
|
49
|
-
options={options}
|
50
|
-
/>
|
51
|
-
</div>
|
52
|
-
)
|
53
|
-
}
|
36
|
+
const CircleChartWithLegendKit = (props) => (
|
37
|
+
<div>
|
38
|
+
<CircleChart
|
39
|
+
chartData={dataWithTitle}
|
40
|
+
id="with-title-example"
|
41
|
+
title="Active Users on Social Media"
|
42
|
+
{...props}
|
43
|
+
/>
|
44
|
+
</div>
|
45
|
+
)
|
54
46
|
|
55
|
-
export default
|
47
|
+
export default CircleChartWithLegendKit
|
@@ -9,3 +9,4 @@ export { default as CircleChartLegendPosition } from './_circle_chart_legend_pos
|
|
9
9
|
export { default as CircleChartWithTitle } from './_circle_chart_with_title.jsx'
|
10
10
|
export { default as CircleChartInnerSizes } from './_circle_chart_inner_sizes.jsx'
|
11
11
|
export { default as CircleChartCustomTooltip } from "./_circle_chart_custom_tooltip.jsx"
|
12
|
+
export { default as CircleChartPbStyles } from "./_circle_chart_pb_styles.jsx"
|
@@ -11,7 +11,7 @@ const TableStickyColumns = () => {
|
|
11
11
|
>
|
12
12
|
<thead>
|
13
13
|
<tr>
|
14
|
-
<th
|
14
|
+
<th id="a">{'Column 1'}</th>
|
15
15
|
<th>{'Column 2'}</th>
|
16
16
|
<th>{'Column 3'}</th>
|
17
17
|
<th>{'Column 4'}</th>
|
@@ -25,12 +25,12 @@ const TableStickyColumns = () => {
|
|
25
25
|
<th>{'Column 12'}</th>
|
26
26
|
<th>{'Column 13'}</th>
|
27
27
|
<th>{'Column 14'}</th>
|
28
|
-
<th
|
28
|
+
<th id="b">{'Column 15'}</th>
|
29
29
|
</tr>
|
30
30
|
</thead>
|
31
31
|
<tbody>
|
32
32
|
<tr>
|
33
|
-
<td
|
33
|
+
<td id="a">{'Value 1'}</td>
|
34
34
|
<td>{'Value 2'}</td>
|
35
35
|
<td>{'Value 3'}</td>
|
36
36
|
<td>{'Value 4'}</td>
|
@@ -44,10 +44,10 @@ const TableStickyColumns = () => {
|
|
44
44
|
<td>{'Value 12'}</td>
|
45
45
|
<td>{'Value 13'}</td>
|
46
46
|
<td>{'Value 14'}</td>
|
47
|
-
<td
|
47
|
+
<td id="b">{'Value 15'}</td>
|
48
48
|
</tr>
|
49
49
|
<tr>
|
50
|
-
<td
|
50
|
+
<td id="a">{'Value 1'}</td>
|
51
51
|
<td>{'Value 2'}</td>
|
52
52
|
<td>{'Value 3'}</td>
|
53
53
|
<td>{'Value 4'}</td>
|
@@ -61,10 +61,10 @@ const TableStickyColumns = () => {
|
|
61
61
|
<td>{'Value 12'}</td>
|
62
62
|
<td>{'Value 13'}</td>
|
63
63
|
<td>{'Value 14'}</td>
|
64
|
-
<td
|
64
|
+
<td id="b">{'Value 15'}</td>
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
|
-
<td
|
67
|
+
<td id="a">{'Value 1'}</td>
|
68
68
|
<td>{'Value 2'}</td>
|
69
69
|
<td>{'Value 3'}</td>
|
70
70
|
<td>{'Value 4'}</td>
|
@@ -78,7 +78,7 @@ const TableStickyColumns = () => {
|
|
78
78
|
<td>{'Value 12'}</td>
|
79
79
|
<td>{'Value 13'}</td>
|
80
80
|
<td>{'Value 14'}</td>
|
81
|
-
<td
|
81
|
+
<td id="b">{'Value 15'}</td>
|
82
82
|
</tr>
|
83
83
|
</tbody>
|
84
84
|
</Table>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
The `stickyLeftColumn` and `stickyRightColumn` props can be used together on the same table as needed.
|
2
2
|
|
3
|
-
Please ensure that unique
|
3
|
+
Please ensure that unique ids are used for all columns across multiple tables. Using the same columns ids on multiple tables can lead to issues when using props.
|
@@ -10,9 +10,9 @@ const TableStickyLeftColumns = () => {
|
|
10
10
|
>
|
11
11
|
<thead>
|
12
12
|
<tr>
|
13
|
-
<th
|
14
|
-
<th
|
15
|
-
<th
|
13
|
+
<th id="1">{'Column 1'}</th>
|
14
|
+
<th id="2">{'Column 2'}</th>
|
15
|
+
<th id="3">{'Column 3'}</th>
|
16
16
|
<th>{'Column 4'}</th>
|
17
17
|
<th>{'Column 5'}</th>
|
18
18
|
<th>{'Column 6'}</th>
|
@@ -29,9 +29,9 @@ const TableStickyLeftColumns = () => {
|
|
29
29
|
</thead>
|
30
30
|
<tbody>
|
31
31
|
<tr>
|
32
|
-
<td
|
33
|
-
<td
|
34
|
-
<td
|
32
|
+
<td id="1">{'Value 1'}</td>
|
33
|
+
<td id="2">{'Value 2'}</td>
|
34
|
+
<td id="3">{'Value 3'}</td>
|
35
35
|
<td>{'Value 4'}</td>
|
36
36
|
<td>{'Value 5'}</td>
|
37
37
|
<td>{'Value 6'}</td>
|
@@ -46,9 +46,9 @@ const TableStickyLeftColumns = () => {
|
|
46
46
|
<td>{'Value 15'}</td>
|
47
47
|
</tr>
|
48
48
|
<tr>
|
49
|
-
<td
|
50
|
-
<td
|
51
|
-
<td
|
49
|
+
<td id="1">{'Value 1'}</td>
|
50
|
+
<td id="2">{'Value 2'}</td>
|
51
|
+
<td id="3">{'Value 3'}</td>
|
52
52
|
<td>{'Value 4'}</td>
|
53
53
|
<td>{'Value 5'}</td>
|
54
54
|
<td>{'Value 6'}</td>
|
@@ -63,9 +63,9 @@ const TableStickyLeftColumns = () => {
|
|
63
63
|
<td>{'Value 15'}</td>
|
64
64
|
</tr>
|
65
65
|
<tr>
|
66
|
-
<td
|
67
|
-
<td
|
68
|
-
<td
|
66
|
+
<td id="1">{'Value 1'}</td>
|
67
|
+
<td id="2">{'Value 2'}</td>
|
68
|
+
<td id="3">{'Value 3'}</td>
|
69
69
|
<td>{'Value 4'}</td>
|
70
70
|
<td>{'Value 5'}</td>
|
71
71
|
<td>{'Value 6'}</td>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
The `stickyLeftColumn` prop expects an array of the column
|
1
|
+
The `stickyLeftColumn` prop expects an array of the column ids you want to be sticky. Make sure to add the corresponding id to the `<th>` and `<td>`.
|
2
2
|
|
3
|
-
If you are using the sub-component variant, then you will pass the
|
3
|
+
If you are using the sub-component variant, then you will pass the id to `<Table.Header>` and `<Table.Cell>`
|
4
4
|
|
5
|
-
Please ensure that unique
|
5
|
+
Please ensure that unique ids are used for all columns across multiple tables. Using the same columns ids on multiple tables can lead to issues when using `stickyLeftColumn` prop.
|
@@ -22,9 +22,9 @@ const TableStickyRightColumns = () => {
|
|
22
22
|
<th>{'Column 10'}</th>
|
23
23
|
<th>{'Column 11'}</th>
|
24
24
|
<th>{'Column 12'}</th>
|
25
|
-
<th
|
26
|
-
<th
|
27
|
-
<th
|
25
|
+
<th id="13">{'Column 13'}</th>
|
26
|
+
<th id="14">{'Column 14'}</th>
|
27
|
+
<th id="15">{'Column 15'}</th>
|
28
28
|
</tr>
|
29
29
|
</thead>
|
30
30
|
<tbody>
|
@@ -41,9 +41,9 @@ const TableStickyRightColumns = () => {
|
|
41
41
|
<td>{'Value 10'}</td>
|
42
42
|
<td>{'Value 11'}</td>
|
43
43
|
<td>{'Value 12'}</td>
|
44
|
-
<td
|
45
|
-
<td
|
46
|
-
<td
|
44
|
+
<td id="13">{'Value 13'}</td>
|
45
|
+
<td id="14">{'Value 14'}</td>
|
46
|
+
<td id="15">{'Value 15'}</td>
|
47
47
|
</tr>
|
48
48
|
<tr>
|
49
49
|
<td>{'Value 1'}</td>
|
@@ -58,9 +58,9 @@ const TableStickyRightColumns = () => {
|
|
58
58
|
<td>{'Value 10'}</td>
|
59
59
|
<td>{'Value 11'}</td>
|
60
60
|
<td>{'Value 12'}</td>
|
61
|
-
<td
|
62
|
-
<td
|
63
|
-
<td
|
61
|
+
<td id="13">{'Value 13'}</td>
|
62
|
+
<td id="14">{'Value 14'}</td>
|
63
|
+
<td id="15">{'Value 15'}</td>
|
64
64
|
</tr>
|
65
65
|
<tr>
|
66
66
|
<td>{'Value 1'}</td>
|
@@ -75,9 +75,9 @@ const TableStickyRightColumns = () => {
|
|
75
75
|
<td>{'Value 10'}</td>
|
76
76
|
<td>{'Value 11'}</td>
|
77
77
|
<td>{'Value 12'}</td>
|
78
|
-
<td
|
79
|
-
<td
|
80
|
-
<td
|
78
|
+
<td id="13">{'Value 13'}</td>
|
79
|
+
<td id="14">{'Value 14'}</td>
|
80
|
+
<td id="15">{'Value 15'}</td>
|
81
81
|
</tr>
|
82
82
|
</tbody>
|
83
83
|
</Table>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
The `stickyRightColumn` prop works in the same way as the above `stickyLeftColumn` prop. It expects an array of the column
|
1
|
+
The `stickyRightColumn` prop works in the same way as the above `stickyLeftColumn` prop. It expects an array of the column ids you want to be sticky. Make sure to add the corresponding id to the `<th>` and `<td>`.
|
2
2
|
|
3
|
-
If you are using the sub-component variant, then you will pass the
|
3
|
+
If you are using the sub-component variant, then you will pass the id to `<Table.Header>` and `<Table.Cell>`
|
4
4
|
|
5
|
-
Please ensure that unique
|
5
|
+
Please ensure that unique ids are used for all columns across multiple tables. Using the same columns ids on multiple tables can lead to issues when using the `stickyRightColumn` prop.
|