Expand description
2D tile reorder: SortableGrid displays a flat Vec in cols
columns and emits the same SortEvents as SortableList, applied
with crate::sortable::apply_sort (insert-and-reflow) or
crate::sortable::apply_swap (tiles trade places). The full
reference for both components lives with the crate::sortable
module docs, docs/api/sortable-lists.md.
Re-exports§
pub use SortableGrid_completions::Component::SortableGrid;
Structs§
- Sortable
Grid Props - Properties for the
SortableGridcomponent.
Functions§
- Sortable
Grid - A grid of tiles reordered (or swapped) by dragging.
- cell_of
(row, col)of a flat index in a grid withcolscolumns.- index_
of - Flat index of
(row, col)in a grid withcolscolumns, orNoneif outsidelen.