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