init(sortOrder:columns:rows:)
Creates a sortable table with the given columns and rows.
Declaration
nonisolated init<Sort>(sortOrder: Binding<[Sort]>, @TableColumnBuilder<Value, Sort> columns: () -> Columns, @TableRowBuilder<Value> rows: () -> Rows) where Sort : SortComparator, Columns.TableRowValue == Sort.ComparedParameters
- 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.