playbook_ui_docs 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11641 → 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11644

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.
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: 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11641
4
+ version: 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11644
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -94,8 +94,6 @@ files:
94
94
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
95
95
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
96
96
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
97
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.jsx
98
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.md
99
97
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb
100
98
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
101
99
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md
@@ -1,59 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import { MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN } from "./_mock_data_inline_loading_empty_children"
4
-
5
- const AdvancedTableInlineRowLoadingShowToggle = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- cellAccessors: ["quarter", "month", "day"],
11
- },
12
- {
13
- accessor: "newEnrollments",
14
- label: "New Enrollments",
15
- },
16
- {
17
- accessor: "scheduledMeetings",
18
- label: "Scheduled Meetings",
19
- },
20
- {
21
- accessor: "attendanceRate",
22
- label: "Attendance Rate",
23
- },
24
- {
25
- accessor: "completedClasses",
26
- label: "Completed Classes",
27
- },
28
- {
29
- accessor: "classCompletionRate",
30
- label: "Class Completion Rate",
31
- },
32
- {
33
- accessor: "graduatedStudents",
34
- label: "Graduated Students",
35
- },
36
- ]
37
-
38
- //Render the subRow header rows
39
- const subRowHeaders = ["Quarter", "Month", "Day"]
40
-
41
-
42
- return (
43
- <div>
44
- <AdvancedTable
45
- columnDefinitions={columnDefinitions}
46
- enableToggleExpansion="all"
47
- inlineRowLoading
48
- showToggleWithInlineRowLoading
49
- tableData={MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN}
50
- {...props}
51
- >
52
- <AdvancedTable.Header />
53
- <AdvancedTable.Body subRowHeaders={subRowHeaders}/>
54
- </AdvancedTable>
55
- </div>
56
- )
57
- }
58
-
59
- export default AdvancedTableInlineRowLoadingShowToggle
@@ -1,5 +0,0 @@
1
- The `showToggleWithInlineRowLoading` is a boolean prop that renders the toggle-all icon in the top left header cell for complex datasets with enoty `children` arrays and advanced querying logic explained in the preceeding doc example. Your logic may require an additional query helper file to update data specifically from requerying via toggle all buttons.
2
-
3
- In this code example, all 3 rows have empty children arrays. The toggle all button would not render (prior to an initial row expansion) without `showToggleWithInlineRowLoading` in place.
4
-
5
- This prop is set to false by default and should only be used in conjunction with `inlineRowLoading`.