Sha256: 7d701334f93050494b5c0b17f289b6dd6d4c290c101159f68808f52c3ac61865

Contents?: true

Size: 1.09 KB

Versions: 98

Compression:

Stored size: 1.09 KB

Contents

import React from "react";
import { AdvancedTable } from "../../";
import { MOCK_DATA } from "./_mock_data";

const AdvancedTableTableProps = (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",
    },
  ];

  const tableProps = {
    container: false,
    sticky: true
  }

  return (
    <div>
      <AdvancedTable
          columnDefinitions={columnDefinitions}
          tableData={MOCK_DATA}
          tableProps={tableProps}
          {...props}
      />
    </div>
  );
};

export default AdvancedTableTableProps;

Version data entries

98 entries across 98 versions & 2 rubygems

Version Path
playbook_ui_docs-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui_docs-13.21.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
playbook_ui-13.21.0 app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx