Sha256: b3cd391330ecc88e0d886ab554d73c88d9f2444cd1079e1d0bc792e613a2b6e2
Contents?: true
Size: 1.24 KB
Versions: 86
Compression:
Stored size: 1.24 KB
Contents
import React from "react" import { AdvancedTable } from "playbook-ui" import MOCK_DATA from "./advanced_table_mock_data.json" const AdvancedTableColumnHeaders = (props) => { const columnDefinitions = [ { accessor: "year", label: "Year", cellAccessors: ["quarter", "month", "day"], }, { label: "Enrollment Data", columns: [ { accessor: "newEnrollments", label: "New Enrollments", }, { accessor: "scheduledMeetings", label: "Scheduled Meetings", }, ], }, { label: "Performance Data", columns: [ { accessor: "attendanceRate", label: "Attendance Rate", }, { accessor: "completedClasses", label: "Completed Classes", }, { accessor: "classCompletionRate", label: "Class Completion Rate", }, { accessor: "graduatedStudents", label: "Graduated Students", }, ], }, ]; return ( <> <AdvancedTable columnDefinitions={columnDefinitions} tableData={MOCK_DATA} {...props} /> </> ) } export default AdvancedTableColumnHeaders
Version data entries
86 entries across 86 versions & 2 rubygems