init<Data, Sort>(Data, sortOrder : Binding<[Sort]>, columns: () -> Columns)
Creates a sortable 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, Sort>(Data, selection: Binding<Value.ID?>, sortOrder : Binding<[Sort]>, columns: () -> Columns)
Creates a sortable 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
.