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.

  • Draft, edited 1 day ago
  • Draft, edited 2 days ago
  • Draft, edited 3 days ago

Tick the drafts to act on

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.

  • Draft, edited 1 day ago
  • Draft, edited 2 days ago

Tick the drafts to act on

2 done, 1 not done.

  • Not done What a mention queue is for Changed on the site since this page was loaded. Open it to see the change.
  • Done Notes on the spring release
  • Done Why the uptime strip counts gaps

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

  • Draft, edited 1 day ago
  • Draft, edited 2 days ago
  • Draft, edited 3 days ago
  • Draft, edited 4 days ago
  • Draft, edited 5 days ago
  • Draft, edited 6 days ago
  • Draft, edited 7 days ago
  • Draft, edited 8 days ago
  • Draft, edited 9 days ago
  • Draft, edited 10 days ago
  • Draft, edited 11 days ago
  • Draft, edited 12 days ago

2 selected

2 selected

  • Draft, edited 1 day ago
  • Draft, edited 2 days ago
  • Draft, edited 3 days ago
  • Draft, edited 4 days ago
  • Draft, edited 5 days ago
  • Draft, edited 6 days ago
  • Draft, edited 7 days ago
  • Draft, edited 8 days ago
  • Draft, edited 9 days ago
  • Draft, edited 10 days ago
  • Draft, edited 11 days ago
  • Draft, edited 12 days ago

Results, where Undo lives