Sha256: 82c3d7cb26ccdadc7b75f97c3f620236add075523c7da8f9c0dedbfbb9e12c18
Contents?: true
Size: 1.1 KB
Versions: 948
Compression:
Stored size: 1.1 KB
Contents
import React from "react" import { AdvancedTable } from "playbook-ui" import MOCK_DATA from "./advanced_table_mock_data.json" const AdvancedTableTableProps = (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", }, ] const tableProps = { container: false, sticky: true } return ( <div> <AdvancedTable columnDefinitions={columnDefinitions} tableData={MOCK_DATA} tableProps={tableProps} {...props} /> </div> ) } export default AdvancedTableTableProps
Version data entries
948 entries across 948 versions & 2 rubygems