init<Data>(Data, columns: () -> Columns)
Creates a table that computes its rows based on a collection of identifiable data.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.init<Data>(Data, selection: Binding<Value.ID?>, columns: () -> Columns)
Creates a table that computes its rows based on a collection of identifiable data, and 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
.