init(selection: Binding<Value.ID?>, columns: () -> Columns, rows: () -> Rows)
Creates a table with the given columns and rows that supports selecting zero or one row.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.init(selection: Binding<Set<Value.ID>>, columns: () -> Columns, rows: () -> Rows)
Creates a table with the given columns and rows that supports selecting multiple rows.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.