Sha256: c80c56a26f3b8ea8f32b43fd1900e955fa664c5f2d4b549f7d84a0a744f77b24
Contents?: true
Size: 1.11 KB
Versions: 98
Compression:
Stored size: 1.11 KB
Contents
import React from "react"; import { AdvancedTable } from "../../"; import { MOCK_DATA } from "./_mock_data"; const AdvancedTableCollapsibleTrail = (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", }, ]; return ( <div> <AdvancedTable columnDefinitions={columnDefinitions} tableData={MOCK_DATA} {...props} > <AdvancedTable.Header /> <AdvancedTable.Body collapsibleTrail={false} /> </AdvancedTable> </div> ); }; export default AdvancedTableCollapsibleTrail;
Version data entries
98 entries across 98 versions & 2 rubygems