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

Version Path
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx