cfslider

Overview ColdFusion Open BlueDragon Lucee

Puts a slider control, for selecting a numeric value from a range, in a ColdFusion form. The slider moves over the slider groove. As the user moves the slider, the current value displays. Used within a cfform tag. Not supported with Flash forms.

Attributes

Name Required Type Default Description
align No String Alignment of slider: * top * left * bottom * baseline * texttop * absbottom * middle * absmiddle * right
bgcolor No String Background color of control. For a hex value, use the form: textColor = "##xxxxxx", where x = 0-9 or A-F; use two hash signs or none.
bold No Boolean false Yes: displays tree control text in bold No: it does not
9
clickToChange No Boolean Whether clicking the slider changes the value of the pointer:
font No String arial Font name for data in tree control.
fontsize No Numeric Font size for text in tree control, in points.
9
format No String Specifies if the format is:html/applet
height No Numeric 40 Slider control height, in pixels.
hspace No Numeric Horizontal spacing to left and right of slider, in pixels.
9
increment No String The unit increment value for a snapping slider.
italic No Boolean false Yes: displays tree control text in italics No: it does not
label No String 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.
lookandfeel No String windows - motif: renders slider in Motif style - windows: renders slider in Windows style - metal: renders slider in Java Swing style If platform does not support style option, tag defaults to platform default style. Default: windows
9
max No Numeric Maximum value for the slider.
message No String Message text to appear if validation fails.
9
min No Numeric Minimum value for the slider.
name Yes String Name for cfslider control.
notsupported No String Browser must support Java to
view ColdFusion Java Applets!
Text to display if a page that contains a Java applet-based cfform control is opened by a browser that does not support Java or has Java support disabled. Default: "Browser must support Java to
view ColdFusion Java Applets!
"
9
onChange No String Custom JavaScript function to run when slider value changes.Specify only the function name.
9
onDrag No String Custom JavaScript function to run when you drag the slider.Specify only the function name.
onerror No String Custom JavaScript function to run if validation fails.Specify only the function name.
onvalidate No String Custom JavaScript function to validate user input; in this case, a change to the default slider value. Specify only the function name.
range No String 0,100 Numeric slider range values. Separate values with a comma.
refreshlabel No Yes or No. If Yes, the label is not refreshed when the slider is moved. Default is Yes.
scale No Numeric 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.
textcolor No String Text color for control. For a hex value, use the form: textColor = "##xxxxxx", where x = 0-9 or A-F; use two hash signs or none.
tickmarkimages No
tickmarklabels No
tickmarkmajor No Yes to render major tickmarks in the slider scale. No for no major tickmarks. Default is No. Major tick marks are the marks that appear at the intervals specified by the Scale attribute.
tickmarkminor No
9
tip No Boolean Whether the data valu has to display as data tips
value No String Starting slider setting. Must be within the range values.
vertical No Boolean false Yes: Renders slider in browser vertically. You must set width and height attributes; ColdFusion does not automatically swap width and height values. No: Renders slider horizontally.
vspace No Numeric Vertical spacing above and below slider, in pixels.
width No Numeric Slider control width, in pixels.