Sha256: 2e64165def9fe5149f86ff777d1cebcb89ad82ab66389a842de82aa9f93e6b05

Contents?: true

Size: 1.41 KB

Versions: 890

Compression:

Stored size: 1.41 KB

Contents

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

const AdvancedTableResponsive = (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>
      <Title
          size={4}
          text="Not Responsive"
          {...props}
      />
      <AdvancedTable
          columnDefinitions={columnDefinitions}
          responsive="none"
          tableData={MOCK_DATA}
          {...props}
      />
      <Title
          paddingTop="sm"
          size={4}
          text="Responsive as Default"
          {...props}
      />
      <AdvancedTable
          columnDefinitions={columnDefinitions}
          tableData={MOCK_DATA}
          {...props}
      />
    </div>
  )
}

export default AdvancedTableResponsive

Version data entries

890 entries across 890 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.12.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.12.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.12.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.12.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.12.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.12.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5315 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5315 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5314 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5314 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui-14.11.1 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
playbook_ui_docs-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx