silverstripe-framework/admin/javascript/src/components/grid-field
2016-04-06 10:43:33 +12:00
..
tests Add ESLint support 2016-04-06 10:43:33 +12:00
action.js Add ESLint support 2016-04-06 10:43:33 +12:00
cell.js Add ESLint support 2016-04-06 10:43:33 +12:00
header-cell.js Add ESLint support 2016-04-06 10:43:33 +12:00
header.js Add ESLint support 2016-04-06 10:43:33 +12:00
index.js Add ESLint support 2016-04-06 10:43:33 +12:00
README.md Consolidated grid-field component 2016-04-06 08:36:37 +12:00
row.js Add ESLint support 2016-04-06 10:43:33 +12:00
styles.scss Convert react grid-field from flexbox to table-based 2016-04-06 08:49:47 +12:00
table.js Add ESLint support 2016-04-06 10:43:33 +12:00

GridField

General purpose component for tabular data.

GridFieldTableComponent

This component is used to display structured data in an extendible table layout.

Required Props

  • Headings - (array) The column headings.
  • Rows - (array) The table rows.

GridFieldAction

This component renders a button within a grid-field to handle actions.

Required Props

  • handleClick - Function for when a button is clicked

GridFieldCell

This component represents a data cell in a GridFieldRow.

Optional Props

  • width - Set a width relative to the other cells if required. Accepts a number from 1-10 (defaults to 5).

GridFieldHeader

This component is used to display a table header row on a GridFieldComponent.

GridFieldHeaderCell

This component is a cell in a GridFieldHeader component.

Optional Props

  • width - Set a width relative to the other cells if required. Accepts a number from 1-10 (defaults to 5).

GridFieldRow

Represents a row in a GridField.

Optional Props

  • cells - (array) The table data to display in the row.