User Guide

cfslider 401
Attributes
Attribute Req/Opt Default Description
name Required Name of
cfslider control.
label Optional Label to display with control; for example,
"Volume" This
displays:
"Volume %value%"
To reference the value, use "%value%". If %% is omitted,
slider value displays directly after label.
range Optional "0,100" Numeric slider range values.
Separate values with a comma.
scale Optional Unsigned integer. Defines slider scale, within range. For
example, if
range = "0,1000" and scale = "100", the display
values are:
0, 100, 200, 300, ...
Signed and unsigned integers in ColdFusion are in the
range -2,147,483,648 to 2,147,483,647.
value Optional Minimum
in range
Starting slider setting. Must be within the
range values.
onValidate Optional Custom JavaScript function to validate user input; in this
case, a change to the default slider value.
Specify only the function name.
message Optional Message text to appear if validation fails.
onError Optional Custom JavaScript function to execute if validation fails.
Specify only the function name.
height Optional 40 Slider control height, in pixels.
width Optional Slider control width, in pixels.
vSpace Optional Vertical spacing above and below slider, in pixels.
hSpace Optional Horizontal spacing to left and right of slider, in pixels.
align Optional Alignment of slider:
top
left
bottom
baseline
texttop
absbottom
middle
absmiddle
right
lookAndFeel Optional Windows motif: renders slider using Motif style.
windows: renders slider using Windows style.
metal: renders slider using Java Swing style.
If platform does not support choice, the tag defaults to the
platform’s default style.