Sha256: ca654f696e28c1c93e7d1b2905e58ca38171930fb135e9b9cce698baf7652183
Contents?: true
Size: 1.3 KB
Versions: 948
Compression:
Stored size: 1.3 KB
Contents
import React from "react" import { AdvancedTable } from "playbook-ui" import { MOCK_DATA_INLINE_LOADING } from "./_mock_data_inline_loading" const AdvancedTableInlineRowLoading = (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" inlineRowLoading tableData={MOCK_DATA_INLINE_LOADING} {...props} > <AdvancedTable.Header /> <AdvancedTable.Body subRowHeaders={subRowHeaders}/> </AdvancedTable> </div> ) } export default AdvancedTableInlineRowLoading
Version data entries
948 entries across 948 versions & 2 rubygems