Create re-usable Plasma Component for expandable list item and port applets to use it
Closed, ResolvedPublic

Description

We have an "expandable list item" paradigm that consists of the following:

  • An icon on the left
  • A column of labels, commonly a header and a subtitle
  • A button on the right that executes the item's default action (e.g. Connect, Pause, Mount, etc)
  • When you click on the item, it expands downwards to show a list of actions, or optionally some custom view

It looks like this:

This paradigm is used in the applets for Device Notifier, Vaults, Networks, Bluetooth, and Printers. However each one implements the paradigm using custom code, resulting in various behavioral and visual differences between them.

We should extract as much of this as possible into a re-usable component to ensure better visual and behavioral consistency, and avoid re-inventing the wheel in every applet or other UI that wants to implement this paradigm for its list items.

ngraham created this task.Mar 11 2020, 7:25 PM
ngraham triaged this task as Normal priority.
cblack added a subscriber: cblack.Mar 11 2020, 7:27 PM
ndavis added a subscriber: ndavis.Mar 12 2020, 5:08 AM
gvgeo added a subscriber: gvgeo.Mar 12 2020, 10:10 AM
ngraham moved this task from To Do to Needs Review on the Plasma board.Mar 13 2020, 5:54 PM
ngraham moved this task from Reported to Apps Implementation on the Goal: Consistency board.
ngraham renamed this task from Create re-usable Plasma Component for expandable list item to Create re-usable Plasma Component for expandable list item and port applets to use it.Apr 13 2020, 4:06 AM