KDE Visual Design Group/KirigamiHIG/CommandPatterns/OnDemandControls

From KDE Community Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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