playbook_ui_docs 13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2034 → 13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2035

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d9fff2b11c27988f08c120fb0802b4a3522f66beb3d30de3f3aff58aa0a3b44
4
- data.tar.gz: 8b4f012c3fd6c4d6e31a2ccba19e3548d4db654489d861b4805069a1f305ba26
3
+ metadata.gz: f23f1f8b29a9f741ce9ef9ff3f44d8ee298b99320eacbeb4d82f9691a2299d4c
4
+ data.tar.gz: 9284b3faef6044bfd816ba683b00e72de50ee6c26c40cb60691d59b0059bf035
5
5
  SHA512:
6
- metadata.gz: 839c76fdf076320d4e2a265e3a62822c6be9f938fb5060c0338d9b007a4f9d395da9e0308ff50dfd5f39df9ca1efc5229ca4cd6cda8dad2632f8b4e4670dd446
7
- data.tar.gz: 8b4c3503c5cc699c91b2b7648cc661d7b6becd134c50f37ff15f829d8ee9617f887b03f55cd163c7c0b32b056d04926fd78bc0588a6122a2aa73fe217ab498db
6
+ metadata.gz: f6cce140655a45e66d255ed344a675681f031719dd7cd3cabf5fa83e3c130a4943a15d96bef91e2007727f57350898ac86f3838a2243dd1c662fe610b1789351
7
+ data.tar.gz: 8abe09344920bf2b3610e746e7d0e77553f64c2e7fdad4fa4aab3dc1a28f8e016c6c0b71c904bbeb5384102b4e7c5a2220d08eb36708d6a42e55b4e992e56072
@@ -0,0 +1,57 @@
1
+ import React from "react";
2
+ import { AdvancedTable } from "../..";
3
+ import { MOCK_DATA } from "./_mock_data";
4
+
5
+ const AdvancedTableSort = (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
+ tableData={MOCK_DATA}
48
+ {...props}
49
+ >
50
+ <AdvancedTable.Header enableSorting />
51
+ <AdvancedTable.Body subRowHeaders={subRowHeaders} />
52
+ </AdvancedTable>
53
+ </div>
54
+ );
55
+ };
56
+
57
+ export default AdvancedTableSort;
@@ -1,5 +1,6 @@
1
1
  examples:
2
2
  react:
3
3
  - advanced_table_default: Default
4
+ - advanced_table_sort: All in One
4
5
 
5
6
 
@@ -1 +1,2 @@
1
1
  export { default as AdvancedTableDefault } from './_advanced_table_default.jsx'
2
+ export { default as AdvancedTableSort } from './_advanced_table_sort.jsx'