Sha256: d99bef35d1097d30591fa8ec8e8411f474f854c8951f0aab56ef7334387d0f5e

Contents?: true

Size: 1.12 KB

Versions: 948

Compression:

Stored size: 1.12 KB

Contents

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

const AdvancedTableCollapsibleTrail = (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}
      >
        <AdvancedTable.Header />
        <AdvancedTable.Body collapsibleTrail={false} />
      </AdvancedTable>
    </div>
  )
}

export default AdvancedTableCollapsibleTrail

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx