Sha256: a0a3dcd7b89acde8fc5196541262e703fbb171bba9d59a9e010efcbdcd9752e3
Contents?: true
Size: 1.23 KB
Versions: 12
Compression:
Stored size: 1.23 KB
Contents
import React from "react"; import { AdvancedTable } from "../.."; import { MOCK_DATA } from "./_mock_data"; const AdvancedTableSort = (props) => { const columnDefinitions = [ { accessor: "year", label: "Year", cellAccessors: ["quarter", "month", "day"], }, { accessor: "newEnrollments", label: "New Enrollments", }, { accessor: "scheduledMeetings", label: "Scheduled Meetings", }, { accessor: "attendanceRate", label: "Attendance Rate", }, { accessor: "completedClasses", label: "Completed Classes", }, { accessor: "classCompletionRate", label: "Class Completion Rate", }, { accessor: "graduatedStudents", label: "Graduated Students", }, ]; //Render the subRow header rows const subRowHeaders = ["Quarter", "Month", "Day"] return ( <div> <AdvancedTable columnDefinitions={columnDefinitions} enableToggleExpansion="all" tableData={MOCK_DATA} {...props} > <AdvancedTable.Header enableSorting /> <AdvancedTable.Body subRowHeaders={subRowHeaders} /> </AdvancedTable> </div> ); }; export default AdvancedTableSort;
Version data entries
12 entries across 12 versions & 2 rubygems