Skip to content

KnobBox ​

A number you drag in place, with a ladder of step sizes: Knob lowers to it.

KnobBox(binding, domain, options)A number you drag in place, with a ladder of step sizes: Knob lowers to it.
Typed signatures
TypePackageApplies
(expression, expression, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • Wolfram has no knob; this box is ours, with the same shape as SliderBox: the binding, then (min, max) or (min, max, step).
  • Its intent is continuous: a host without the web's widgets draws a track with a marker and the value.

Examples

Basic #

a box is inert: it evaluates to itself

live ↗
InKnobBox(Dynamic(k),(0,5))\mathrm{KnobBox}(\mathrm{Dynamic}(k), (0,5))OutKnobBox(Dynamic(k),(0,5))\mathrm{KnobBox}(\mathrm{Dynamic}(k), (0,5))
About
Examples1

Implementation

mappedwolframpackages/oracle/src/mappings.ts

Wolfram has no knob box; this one is ours.

See also: SliderBox, StepperBox, DynamicBox