Sha256: ecc763a8a0858685b9a526b7a8d3d5f2dc3316180f7af3ad77166aeaf8a132e4

Contents?: true

Size: 1019 Bytes

Versions: 948

Compression:

Stored size: 1019 Bytes

Contents

import React from "react"
import { AdvancedTable } from "playbook-ui"
import MOCK_DATA from "./advanced_table_mock_data.json"

const AdvancedTableDefault = (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}
      />
    </div>
  )
}

export default AdvancedTableDefault

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx