row-menu
清單畫面 一般嘅清單畫面:標題、工具列同行,喺桌面同手機都用得。
該行嘅其他操作,收喺 ⋮ 掣後面。破壞性嘅操作連去佢嘅確認頁。
每個例子都真係用得,不過入面啲連結唔會帶你去邊度。 HTML 顯示可以複製嘅標記。
連結、表格同一個破壞性項目
將破壞性項目放喺最後,標籤以 … 結尾。佢會打開一頁,喺刪除任何嘢之前先問一聲。
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="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" >編輯</a >
<form method ="post" action ="/orders/AB3PX/archive" >
<input type ="hidden" name ="state" value ="archived" >
<button type ="submit" >封存</button >
</form >
<hr >
<a class ="rst-danger" href ="/orders/AB3PX/delete" >刪除訂單…</a >
</div >
</details >
喺應用程式入面,呢個會去到 /orders/AB3PX/archive, /orders/AB3PX/delete, /orders/AB3PX/edit。喺呢度,佢嘅連結同表格都唔會去任何地方。
只有連結,用喺選擇表格入面嘅清單
喺表格入面,每個項目都一定要係連結。要提交嘅操作就經佢自己嗰一頁做。
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="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" >編輯</a >
<hr >
<a class ="rst-danger" href ="/orders/CD4QY/delete" >刪除訂單…</a >
</div >
</details >
喺應用程式入面,呢個會去到 /orders/CD4QY/delete, /orders/CD4QY/edit。喺呢度,佢嘅連結同表格都唔會去任何地方。