Sha256: eeaa77e69149f07b623133938bb9058f2ee3d18e8c25432156c7d8b1b5c6c686
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
import React from "react" import { AdvancedTable } from "playbook-ui" import MOCK_DATA from "./advanced_table_mock_data_no_subrows.json" const AdvancedTableSelectableRowsNoSubrows = (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} onRowSelectionChange={(selectedRows) => console.log(selectedRows)} selectableRows tableData={MOCK_DATA} {...props} /> </div> ) } export default AdvancedTableSelectableRowsNoSubrows
Version data entries
2 entries across 2 versions & 2 rubygems