Bulk action bar
What a selection can be done to: the live count, the actions, select all in view and Clear.
Three selected, in the HTML
3 selected 2.4 MB
Nothing selected: the bar is hidden
The bar below is in the HTML with the hidden attribute, so it takes no room and is not read. It appears when the first item is chosen.
Choose, then act: archive runs at once with Undo, bin previews first
A form: the actions are submit buttons and the server confirms
This bar is in the page and works with no script: the boxes are the form's own, each action is a submit button named intent, and the server decides (a destructive intent gets the server's own page listing every item). With script the bar counts, hides while nothing is ticked, and refuses a press with nothing ticked.
After an action: one outcome per item, refusals first
The page the server sent back after the form posted: nothing is ticked, and the bar stays in view to list what happened to each item. Dismiss results needs script, so it is hidden in the delivered HTML and shown on load.
Twelve selected: the preview lists every one
12 selected
An action that fails
2 selected
Sticks to the bottom of its scroll area, or the top
2 selected
2 selected