Expand description
Trash view controls: restore or permanently delete trashed assets.
The Trash sidebar destination lists trashed assets in the normal grid. This module adds the “Restore All” / “Empty Trash” bar above the grid and swaps the selection bar’s actions for “Restore” / “Delete Permanently” while it’s active.
Structs§
- Trash
Controls 🔒 - Trash-only widgets, plus the selection-bar buttons they temporarily replace.
Functions§
- build_
trash_ 🔒bar - Bar above the grid in the Trash: the retention note with Restore All and Empty Trash.
- build_
trash_ 🔒controls - clear_
selection 🔒 - confirm_
delete_ 🔒permanently - Ask, then permanently delete
idsand drop them from the grid;on_doneruns after. - confirm_
delete_ 🔒selected - confirm_
destructive 🔒 - Cancel-by-default confirmation whose destructive button runs
on_confirm. - confirm_
empty_ 🔒trash - connect_
trash_ 🔒controls - is_
trash_ 🔒active - permanent_
delete_ 🔒text - Heading and body for the permanent-delete confirmation.
- restore 🔒
- Restore assets from the trash and drop them from the trash grid;
on_doneruns after. - restore_
all 🔒 - restore_
selected 🔒 - selected_
ids 🔒 - set_
trash_ 🔒mode - Show the trash bar and trash selection actions only while the Trash source is active.