Sha256: 8caa6d295e48931db862ffab3189bc278e86e57b26b8bde8dd4d825f35c2c101

Contents?: true

Size: 1.12 KB

Versions: 132

Compression:

Stored size: 1.12 KB

Contents

import React from "react"
import { AdvancedTable } from "../../"
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

132 entries across 132 versions & 2 rubygems

Version Path
playbook_ui_docs-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.25.0.pre.alpha.barchartfix2766 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0.pre.alpha.barchartfix2766 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.25.0.pre.alpha.PLAY761globalpaddingpropsbuttons2713 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0.pre.alpha.PLAY761globalpaddingpropsbuttons2713 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.25.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.25.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.24.0.pre.alpha.play1305drycontenttag2689 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.24.0.pre.alpha.play1305drycontenttag2689 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.24.0.pre.alpha.PBNTR261NewKitDropdown2681 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.24.0.pre.alpha.PBNTR261NewKitDropdown2681 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui_docs-13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
playbook_ui-13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx