SwiftUI.js
Components

TableColumn

TableColumn defines a single column inside `Table`, including its header title and row value renderer.

TableColumn defines a single column inside `Table`, including its header title and row value renderer.

Examples

Default

Preview unavailable for this example in the static docs build.

Show code
<Table data={rows} rowKey={(row) => row.id}>
      <TableColumn<Person> title="Name" value={(row) => row.name} />
      <TableColumn<Person> title="Role" value={(row) => row.role} />
    </Table>

API

PropTypeRequiredDescription
titleReactNodeYesThe visible header title for this column.
value(row: Row) => ReactNodeYesRenderer for each row value in this column.

Overview

TableColumn defines a single column inside Table, including its header title and row value renderer.

On this page