init(of:selection:columns:rows:)
Creates a table with the given columns and rows that supports selecting multiple rows that generates its data using values of the given type.
Declaration
nonisolated init(of valueType: Value.Type, selection: Binding<Set<Value.ID>>, @TableColumnBuilder<Value, Never> columns: () -> Columns, @TableRowBuilder<Value> rows: () -> Rows)Parameters
- valueType:
The type of value used to derive the table’s contents.
- selection:
A binding to a set that identifies the selected rows IDs.
- columns:
The columns to display in the table.
- rows:
The rows to display in the table.