row-menu
List screen Generic list screen with title, toolbar, rows that work desktop and mobile.
A row's other actions, behind a ⋮ button. A destructive one links to its confirm page.
Each example is live, but its links go nowhere. HTML shows the markup to copy.
Links, a form and a destructive item
Put the destructive item last and end its label with …. It opens a page that asks before anything is deleted.
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Actions for Grace Hopper" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/orders/AB3PX/edit" >Edit</a >
<form method ="post" action ="/orders/AB3PX/archive" >
<input type ="hidden" name ="state" value ="archived" >
<button type ="submit" >Archive</button >
</form >
<hr >
<a class ="rst-danger" href ="/orders/AB3PX/delete" >Delete order…</a >
</div >
</details >
In an app this would reach /orders/AB3PX/archive, /orders/AB3PX/delete, /orders/AB3PX/edit. Here its links and forms go nowhere.
Links only, for a list inside a selection form
Inside a form, every item must be a link. An action that posts goes through a page of its own.
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Actions for Alan Turing" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/orders/CD4QY/edit" >Edit</a >
<hr >
<a class ="rst-danger" href ="/orders/CD4QY/delete" >Delete order…</a >
</div >
</details >
In an app this would reach /orders/CD4QY/delete, /orders/CD4QY/edit. Here its links and forms go nowhere.