init(of:selection:sortOrder:columns:rows:)
Creates a sortable table with the given columns and rows that supports selecting multiple rows.
Declaration
nonisolated init<Sort>(of valueType: Value.Type, selection: Binding<Set<Value.ID>>, sortOrder: Binding<[Sort]>, @TableColumnBuilder<Value, Sort> columns: () -> Columns, @TableRowBuilder<Value> rows: () -> Rows) where Sort : SortComparator, Columns.TableRowValue == Sort.ComparedParameters
- valueType:
The type of value used to derive the table’s contents.
- selection:
A binding to a set that identifies selected rows ids.
- sortOrder:
A binding to the ordered sorting of columns.
- columns:
The columns to display in the table.
- rows:
The rows to display in the table.