Jump to content

KDE Visual Design Group/KirigamiHIG/CommandPatterns/OnDemandControls

From KDE Community Wiki

On-Demand Controls

When to use

Use on-demand controls for actions which directly relate to an element in a list, so they can be executed without selecting the element first (for example deleting or replying to an email right from the list).

How to use

On-demand controls are revealed by sliding a handle from right to left to reveal them, or when hovering over the item with the cursor (on desktop).

  • Do not use on-demand controls as the only means to execute an action, they are only shortcuts.
  • Do not use more than five (ideally not more than three) actions in on-demand controls

Implementation

Use org::kde::kirigami::SwipeListItem