Wolfram Computation Meets Knowledge

Wolfram Language & System Documentation Center Wolfram Language Home Page »

Slider

Slider[x]

represents a slider with setting x in the range 0 to 1.

Slider[Dynamic[x]]

takes the setting to be the dynamically updated current value of x, with the value of x being reset if the slider is moved.

Slider[x,{xmin,xmax}]

represents a slider with range xmin to xmax.

Slider[x,{xmin,xmax,dx}]

represents a slider that jumps in steps dx.

Slider[x,{{e1,e2,…}}]

represents a slider in which equally spaced intervals correspond to successive settings ei.

Slider[x,{{{e1,w1},{e2,w2},…}}]

uses intervals of relative widths wi for the ei.

Details and Options

Examples

open allclose all

Basic Examples  (3)

A slider set at in the default range to :

A slider with its value updated dynamically:

A slider with integer values in the range to :

Scope  (5)

Use the range to , increasing when going from left to right:

A slider with range to , increasing when going from right to left:

Use only integer variable values:

Use rational steps:

Use slider increments of π:

Use a symbolic range:

Use a list of possible values:

Change the relative width corresponding to each possible value:

Options  (20)

Appearance  (4)

Different sizes:

Add a label:

Special arrow appearances are available on some platforms:

Use dynamic appearance, based on whether Round[x] is or :

AutoAction  (2)

By default, no slider values change until you click in the slider area:

By setting AutoAction, the slider values change as the mouse moves over the slider area:

Background  (2)

Change the background colors:

Change the background color dynamically:

BaselinePosition  (2)

Align with the surrounding text:

Dynamically change the baseline position:

ContinuousAction  (2)

By default, variables are continuously updated:

Setting ContinuousAction to False makes variables update only when the slider is released:

Enabled  (2)

By default, Slider is enabled:

By setting Enabled->False, the slider is disabled but visible in its current state:

Exclusions  (1)

Exclude values from the range:

ImageMargins  (1)

By setting ImageMargins, you make the slider area larger:

ImageSize  (4)

Use preset values:

Or use any values:

By setting the second element, you can also control the height reserved by the slider:

A fully custom image size:

Applications  (2)

Selecting the n^(th) prime:

Selecting the n^(th) digit in the decimal expansion of π:

A color selector:

Possible Issues  (1)

Appearances provided by the operating system may be different or unavailable on other platforms:

Generic appearances are available on all platforms:

Neat Examples  (1)

Randomly sized sliders:

Wolfram Research (2007), Slider, Wolfram Language function, https://reference.wolfram.com/language/ref/Slider.html (updated 2008).

Text

Wolfram Research (2007), Slider, Wolfram Language function, https://reference.wolfram.com/language/ref/Slider.html (updated 2008).

CMS

Wolfram Language. 2007. "Slider." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Slider.html.

APA

Wolfram Language. (2007). Slider. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Slider.html

BibTeX

@misc{reference.wolfram_2024_slider, author="Wolfram Research", title="{Slider}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Slider.html}", note=[Accessed: 18-May-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_slider, organization={Wolfram Research}, title={Slider}, year={2008}, url={https://reference.wolfram.com/language/ref/Slider.html}, note=[Accessed: 18-May-2024 ]}

Top