Sha256: fa4ec5950f7daa788977a30d136863c8de5918df383e0f09d8b1309d7332abf1

Contents?: true

Size: 1.24 KB

Versions: 132

Compression:

Stored size: 1.24 KB

Contents

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

const AdvancedTableSubrowHeaders = (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"
          tableData={MOCK_DATA}
          {...props}
      >
        <AdvancedTable.Header />
        <AdvancedTable.Body subRowHeaders={subRowHeaders}/>
      </AdvancedTable>
    </div>
  )
}

export default AdvancedTableSubrowHeaders

Version data entries

132 entries across 132 versions & 2 rubygems

Version Path
playbook_ui_docs-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.34.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.34.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui-13.33.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
playbook_ui_docs-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx