playbook_ui_docs 16.9.0.pre.alpha.PLAY3039advancedtablerowstylingfontweight17275 → 16.9.0.pre.alpha.PLAY296917309
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/_advanced_table_row_styling.html.erb +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +1 -9
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +1 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb +35 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md +8 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +3 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.html.erb +5 -5
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.html.erb +1 -1
- metadata +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +0 -92
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c37d99b1420ce34f136dc4c89a19be0c8f6b0ebfeb27f8739f570190f2598d7
|
|
4
|
+
data.tar.gz: 31060a1cd7c6e47de129cf0f9f391c5a461133a7b5dad5fbdbf1f4eb17aab290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4ab4bc82d6384d3d05d6bf129f7da14107f5b84ff6a8253d2f86cabd99ae3ca3dd0482bc7dbc40d3c96c8670e1c403983aef8eb67d08c2d2a2a3a16d9cae7b1
|
|
7
|
+
data.tar.gz: 4146ad81678145b524a30e0cc3aa0bed64529257aa01c84a453f20e900fec06a74cebd3506dd1c52386c107c474eb9189913e1f83692a112fd2fe94fab181fdf
|
|
@@ -41,10 +41,6 @@
|
|
|
41
41
|
font_color: "white",
|
|
42
42
|
expand_button_color: "white",
|
|
43
43
|
},
|
|
44
|
-
{
|
|
45
|
-
row_id: "15",
|
|
46
|
-
font_weight: "bold",
|
|
47
|
-
},
|
|
48
44
|
] %>
|
|
49
45
|
|
|
50
46
|
<%= pb_rails("advanced_table", props: { id: "row-styling", table_data: @table_data_with_id, column_definitions: column_definitions, row_styling: row_styling }) %>
|
|
@@ -3,6 +3,5 @@ The `row_styling` prop can be used in conjunction with row ids to control certai
|
|
|
3
3
|
- `background_color` : use this to control the background color of the row
|
|
4
4
|
- `font_color`: use this to control font color for each row if needed, for example if using a darker background color.
|
|
5
5
|
- `expand_button_color`: use this to control the color of the expand icon if needed, for example if using a darker background color.
|
|
6
|
-
- `font_weight`: use this to control row font weight. Accepted values are `regular` (default appearance) and `bold`.
|
|
7
6
|
|
|
8
7
|
**NOTE:** Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
|
@@ -3,6 +3,5 @@ The `rowStyling` prop can be used in conjunction with row ids to control certain
|
|
|
3
3
|
- `backgroundColor` : use this to control the background color of the row
|
|
4
4
|
- `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
|
|
5
5
|
- `expandButtonColor`: use this to control the color of the expand icon if needed, for example if using a darker background color.
|
|
6
|
-
- `fontWeight`: use this to control row font weight. Accepted values are `regular` (default appearance) and `bold`.
|
|
7
6
|
|
|
8
7
|
**NOTE:** Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"rowId": "1",
|
|
29
29
|
"backgroundColor": "#0056CF",
|
|
30
30
|
"fontColor": "#FFFFFF",
|
|
31
|
-
"expandButtonColor": "#FFFFFF"
|
|
32
|
-
"fontWeight": "bold"
|
|
31
|
+
"expandButtonColor": "#FFFFFF"
|
|
33
32
|
}
|
|
34
33
|
],
|
|
35
34
|
"expandByDepth": [
|
|
@@ -234,11 +233,6 @@
|
|
|
234
233
|
"customSort": true
|
|
235
234
|
}
|
|
236
235
|
},
|
|
237
|
-
"fullScreenControl": {
|
|
238
|
-
"requires": {
|
|
239
|
-
"allowFullScreen": true
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
236
|
"enableSortingRemoval": {
|
|
243
237
|
"requires": {
|
|
244
238
|
"enableSorting": true
|
|
@@ -2955,9 +2949,7 @@
|
|
|
2955
2949
|
},
|
|
2956
2950
|
"hiddenProps": [
|
|
2957
2951
|
"sortControl",
|
|
2958
|
-
"fullScreenControl",
|
|
2959
2952
|
"expandedControl",
|
|
2960
|
-
"allowFullScreen",
|
|
2961
2953
|
"pagination",
|
|
2962
2954
|
"paginationProps"
|
|
2963
2955
|
],
|
|
@@ -73,9 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"hiddenProps": [
|
|
75
75
|
"sortControl",
|
|
76
|
-
"fullScreenControl",
|
|
77
76
|
"expandedControl",
|
|
78
|
-
"allowFullScreen",
|
|
79
77
|
"pagination",
|
|
80
78
|
"paginationProps"
|
|
81
79
|
],
|
|
@@ -106,7 +104,7 @@
|
|
|
106
104
|
"tableProps": {
|
|
107
105
|
"container": false
|
|
108
106
|
},
|
|
109
|
-
"rowStyling": [{ "rowId": "1", "backgroundColor": "#0056CF", "fontColor": "#FFFFFF", "expandButtonColor": "#FFFFFF"
|
|
107
|
+
"rowStyling": [{ "rowId": "1", "backgroundColor": "#0056CF", "fontColor": "#FFFFFF", "expandButtonColor": "#FFFFFF" }],
|
|
110
108
|
"expandByDepth": [
|
|
111
109
|
{
|
|
112
110
|
"depth": 0,
|
|
@@ -291,11 +289,6 @@
|
|
|
291
289
|
"customSort": true
|
|
292
290
|
}
|
|
293
291
|
},
|
|
294
|
-
"fullScreenControl": {
|
|
295
|
-
"requires": {
|
|
296
|
-
"allowFullScreen": true
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
292
|
"enableSortingRemoval": {
|
|
300
293
|
"requires": {
|
|
301
294
|
"enableSorting": true
|
|
@@ -23,7 +23,6 @@ export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_tabl
|
|
|
23
23
|
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
|
24
24
|
export { default as AdvancedTableColumnHeadersVerticalBorder } from './_advanced_table_column_headers_vertical_border.jsx'
|
|
25
25
|
export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
|
|
26
|
-
export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
|
|
27
26
|
export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
|
|
28
27
|
export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
|
|
29
28
|
export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<% lists = [
|
|
2
|
+
{
|
|
3
|
+
title: "Morning Crew",
|
|
4
|
+
items: [
|
|
5
|
+
{ id: "m1", name: "Alice Chen" },
|
|
6
|
+
{ id: "m2", name: "Ben Ortiz" },
|
|
7
|
+
{ id: "m3", name: "Cara Kim" },
|
|
8
|
+
],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: "Afternoon Crew",
|
|
12
|
+
items: [
|
|
13
|
+
{ id: "a1", name: "Diana Patel" },
|
|
14
|
+
{ id: "a2", name: "Evan Brooks" },
|
|
15
|
+
{ id: "a3", name: "Fiona Lee" },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
] %>
|
|
19
|
+
|
|
20
|
+
<%= pb_rails("flex", props: { gap: "md", justify_content: "center", wrap: true }) do %>
|
|
21
|
+
<% lists.each do |list| %>
|
|
22
|
+
<%= pb_rails("flex/flex_item", props: { fixed_size: "220px" }) do %>
|
|
23
|
+
<%= pb_rails("caption", props: { text: list[:title], text_align: "center", margin_bottom: "xs" }) %>
|
|
24
|
+
<%= pb_rails("draggable", props: { initial_items: list[:items] }) do %>
|
|
25
|
+
<%= pb_rails("draggable/draggable_container", props: { padding: "sm" }) do %>
|
|
26
|
+
<% list[:items].each do |item| %>
|
|
27
|
+
<%= pb_rails("draggable/draggable_item", props: { drag_id: item[:id], margin_bottom: "xs" }) do %>
|
|
28
|
+
<%= pb_rails("body", props: { text: item[:name] }) %>
|
|
29
|
+
<% end %>
|
|
30
|
+
<% end %>
|
|
31
|
+
<% end %>
|
|
32
|
+
<% end %>
|
|
33
|
+
<% end %>
|
|
34
|
+
<% end %>
|
|
35
|
+
<% end %>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Use a **separate** `draggable` kit for each list when items should reorder within their own column only.
|
|
2
|
+
|
|
3
|
+
Each instance creates its own drag boundary. Items stay inside that list on desktop and touch — they cannot be dropped into a neighboring list.
|
|
4
|
+
|
|
5
|
+
This is different from [Dragging Across Multiple Containers](#draggable_multiple_containers), which uses **one** `draggable` wrapping multiple `draggable/draggable_container` kits so items can move between columns.
|
|
6
|
+
|
|
7
|
+
On touch devices, drag from the grip handle. Swiping outside the handle scrolls as usual.
|
|
8
|
+
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|
|
1
|
+
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure — **one** `draggable` wrapping multiple `draggable/draggable_container` kits so items can move between columns.
|
|
2
|
+
|
|
3
|
+
For lists that should stay separate, see [Independent Draggable Containers](#draggable_independent_containers).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|
|
1
|
+
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|
|
@@ -17,6 +17,7 @@ examples:
|
|
|
17
17
|
- draggable_with_list: Draggable with List Kit
|
|
18
18
|
- draggable_with_selectable_list: Draggable with SelectableList Kit
|
|
19
19
|
- draggable_with_cards: Draggable with Cards
|
|
20
|
+
- draggable_independent_containers: Independent Draggable Containers
|
|
20
21
|
- draggable_with_table: Draggable with Table
|
|
21
22
|
- draggable_drop_zones: Draggable Drop Zones
|
|
22
23
|
- draggable_drop_zones_colors: Draggable Drop Zones Colors
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_breached" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_breached" }) %>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
window.addEventListener("load", () => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_common" }) %>
|
|
9
9
|
|
|
10
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
10
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_common" }) %>
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
<script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "def_bar" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "def_caption" }) %>
|
|
6
6
|
|
|
7
7
|
<%= pb_rails("text_input", props: { label: "Calculated Strength", value: "0", disabled: true, id: "calc_strength" }) %>
|
|
8
8
|
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "min_5_bar" }) %>
|
|
12
12
|
|
|
13
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
13
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "min_5_caption" }) %>
|
|
14
14
|
|
|
15
15
|
<%= pb_rails("passphrase", props: { label: "Min length = 30", classname: "min_30" }) %>
|
|
16
16
|
|
|
17
17
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "min_30_bar" }) %>
|
|
18
18
|
|
|
19
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
19
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "min_30_caption" }) %>
|
|
20
20
|
|
|
21
21
|
<%= pb_rails("passphrase", props: { label: "Average Threshold = 1", classname: "avg_1" }) %>
|
|
22
22
|
|
|
23
23
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "avg_1_bar" }) %>
|
|
24
24
|
|
|
25
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
25
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "avg_1_caption" }) %>
|
|
26
26
|
|
|
27
27
|
<%= pb_rails("passphrase", props: { label: "Strong Threshold = 4", classname: "strong_4" }) %>
|
|
28
28
|
|
|
29
29
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "strong_4_bar" }) %>
|
|
30
30
|
|
|
31
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
31
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "strong_4_caption" }) %>
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_change" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_change" }) %>
|
|
6
6
|
|
|
7
7
|
<%= pb_rails("text_input", props: { label: "Passphrase Strength", value: "0", disabled: true, id: "calc_strength_change" }) %>
|
|
8
8
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.9.0.pre.alpha.
|
|
4
|
+
version: 16.9.0.pre.alpha.PLAY296917309
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-06-
|
|
12
|
+
date: 2026-06-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -100,8 +100,6 @@ files:
|
|
|
100
100
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md
|
|
101
101
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx
|
|
102
102
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
|
|
103
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
|
|
104
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
|
|
105
103
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.jsx
|
|
106
104
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.md
|
|
107
105
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
|
|
@@ -910,6 +908,8 @@ files:
|
|
|
910
908
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.jsx
|
|
911
909
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md
|
|
912
910
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_react.md
|
|
911
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb
|
|
912
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md
|
|
913
913
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
|
|
914
914
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
|
|
915
915
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react"
|
|
2
|
-
import AdvancedTable from '../_advanced_table'
|
|
3
|
-
import Flex from '../../pb_flex/_flex'
|
|
4
|
-
import Button from '../../pb_button/_button'
|
|
5
|
-
import MOCK_DATA from "./advanced_table_mock_data.json"
|
|
6
|
-
import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
|
|
7
|
-
|
|
8
|
-
const AdvancedTableFullscreen = (props) => {
|
|
9
|
-
const [fullscreenToggleSmall, setFullscreenToggleSmall] = useState(null)
|
|
10
|
-
const [fullscreenToggleLarge, setFullscreenToggleLarge] = useState(null)
|
|
11
|
-
|
|
12
|
-
const columnDefinitions = [
|
|
13
|
-
{
|
|
14
|
-
accessor: "year",
|
|
15
|
-
label: "Year",
|
|
16
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
accessor: "newEnrollments",
|
|
20
|
-
label: "New Enrollments",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
accessor: "scheduledMeetings",
|
|
24
|
-
label: "Scheduled Meetings",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
accessor: "attendanceRate",
|
|
28
|
-
label: "Attendance Rate",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
accessor: "completedClasses",
|
|
32
|
-
label: "Completed Classes",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
accessor: "classCompletionRate",
|
|
36
|
-
label: "Class Completion Rate",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
accessor: "graduatedStudents",
|
|
40
|
-
label: "Graduated Students",
|
|
41
|
-
},
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
const tableProps = {
|
|
45
|
-
sticky: true
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<div>
|
|
50
|
-
<Flex justify="end">
|
|
51
|
-
<Button
|
|
52
|
-
marginBottom="sm"
|
|
53
|
-
onClick={() => fullscreenToggleSmall?.()}
|
|
54
|
-
text="Fullscreen Small Table"
|
|
55
|
-
variant="secondary"
|
|
56
|
-
/>
|
|
57
|
-
</Flex>
|
|
58
|
-
<AdvancedTable
|
|
59
|
-
allowFullScreen
|
|
60
|
-
columnDefinitions={columnDefinitions}
|
|
61
|
-
fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
|
|
62
|
-
tableData={MOCK_DATA}
|
|
63
|
-
{...props}
|
|
64
|
-
>
|
|
65
|
-
<AdvancedTable.Header enableSorting />
|
|
66
|
-
<AdvancedTable.Body />
|
|
67
|
-
</AdvancedTable>
|
|
68
|
-
<Flex justify="end">
|
|
69
|
-
<Button
|
|
70
|
-
marginY="sm"
|
|
71
|
-
onClick={() => fullscreenToggleLarge?.()}
|
|
72
|
-
text="Fullscreen Large Table"
|
|
73
|
-
variant="secondary"
|
|
74
|
-
/>
|
|
75
|
-
</Flex>
|
|
76
|
-
<AdvancedTable
|
|
77
|
-
allowFullScreen
|
|
78
|
-
columnDefinitions={columnDefinitions}
|
|
79
|
-
fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
|
|
80
|
-
responsive="none"
|
|
81
|
-
tableData={PAGINATION_MOCK_DATA}
|
|
82
|
-
tableProps={tableProps}
|
|
83
|
-
{...props}
|
|
84
|
-
>
|
|
85
|
-
<AdvancedTable.Header enableSorting />
|
|
86
|
-
<AdvancedTable.Body />
|
|
87
|
-
</AdvancedTable>
|
|
88
|
-
</div>
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export default AdvancedTableFullscreen
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
Trigger Fullscreen mode with the `allowFullScreen`and `fullScreenControl` props. `allowFullScreen` is a boolean that enables Fullscreen functionality for an Advanced Table. `fullScreenControl` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
|
|
2
|
-
|
|
3
|
-
Exit Fullscreen mode by clicking the minimize top-right-corner icon or by pressing the "Escape" keyboard key.
|