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<Set<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 multiple rows.
Available when
Value
is Rows.TableRowValue
, Rows
conforms to TableRowContent
, Columns
conforms to TableColumnContent
, and Rows.TableRowValue
is Columns.TableRowValue
.