Skip to content

IntervalSliderBox ​

A track with two thumbs that bound an interval: IntervalSlider lowers to it.

IntervalSliderBox(binding, domain, options)A track with two thumbs that bound an interval: IntervalSlider lowers to it.
Typed signatures
TypePackageApplies
(expression, expression, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • Wolfram draws an IntervalSlider as an InterpretationBox wrapping a DynamicBox, with no box head of its own; this box is ours, with the shape of SliderBox. The binding holds the interval, (r, (1, 3)); the domain is (min, max).
  • Its intent is an interval: a host without sliders draws a track with a marker at each end.

Examples

Basic #

a box is inert: it evaluates to itself

live ↗
InIntervalSliderBox(Dynamic(r),(0,5))\mathrm{IntervalSliderBox}(\mathrm{Dynamic}(r), (0,5))OutIntervalSliderBox(Dynamic(r),(0,5))\mathrm{IntervalSliderBox}(\mathrm{Dynamic}(r), (0,5))
About
Examples1

Implementation

mappedwolframpackages/oracle/src/mappings.ts

Wolfram draws IntervalSlider as an InterpretationBox wrapping a DynamicBox, with no box head of its own; this box is ours.

See also: SliderBox, Slider2DBox, DynamicBox