Skip to content

StepperBox ​

An integer in a sentence, stepped in place with arrows.

StepperBox(binding, domain, options)An integer in a sentence, stepped in place with arrows.
Typed signatures
TypePackageApplies
(expression, expression, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • Wolfram has no stepper; this box is ours, with the same shape as SliderBox: the binding, then (min, max). No head lowers to it; a StringTemplate hole for an integer variable is one.
  • 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 ↗
InStepperBox(Dynamic(d),(−5,5))\mathrm{StepperBox}(\mathrm{Dynamic}(d), (-5,5))OutStepperBox(Dynamic(d),(−5,5))\mathrm{StepperBox}(\mathrm{Dynamic}(d), (-5,5))
About
Examples1

Implementation

mappedwolframpackages/oracle/src/mappings.ts

Wolfram has no stepper box; this one is ours.

See also: KnobBox, SliderBox, DynamicBox