← Back to Docs
  • index.html
  • Clayground
  • Clayground.Lab
  • ScenarioBar
  • Clayground 2026.7
  • ScenarioBar QML Type

    Clickable preset chips, each carrying what it is worth noticing. More...

    Import Statement: import Clayground.Lab

    Properties

    Detailed Description

    A lab's scenarios used to be reachable only by pressing 1..4, and the only thing on screen was the name of the active one. That hides the labs' best teaching material behind undocumented keys: a preset is a prepared situation, and the reason it was prepared belongs next to it.

    Each chip shows its digit and its name (<namePrefix><name>); the active preset also shows a one-line note (<notePrefix><name>) if the dictionary has one, which is where "series: one current, the volts divide" goes.

    ScenarioBar { lab: root; width: parent.width }

    See also Scenario, ScenarioSet, and LabKeys.

    Property Documentation

    lab : var

    The sandbox root (scenarios/applyScenario).


    namePrefix : string

    Dictionary prefix for chip labels.


    names : var

    Presets to offer; defaults to the lab's.


    notePrefix : string

    Dictionary prefix for the active note.


    showNote : bool

    Show the active preset's one-liner.