<cfslider>
Used inside <cfform>, cfslider lets you place a slider control in a CFML form.
A slider control is like a sliding volume control.
The slider groove is the area over which the slider moves.
This tag cannot have a body.
This tag is also supported within <cfscript>
Requires Extension: Form Tags for Jakarta EE (Lucee 7+)
<cfslider
name=string
label=string
refreshLabel=boolean
range=string
scale=number
value=number
onValidate=string
message=string
onError=string
height=number
width=number
vSpace=number
hSpace=number
align=string
tickMarkMajor=boolean
tickMarkMinor=boolean
tickMarkImages=string
tickMarkLabels=string
lookAndFeel=string
vertical=boolean
bgColor=string
textColor=string
font=string
fontSize=number
italic=boolean
bold=boolean
notSupported=string
>
| Attribute | Description |
|---|---|
name
string, required
|
edit
A name for the cfslider control. |
label
string, optional
|
edit
A label that displays with the slider control. |
refreshLabel
boolean, optional
|
edit
Yes or No. If Yes, the label is not refreshed when the slider is moved. Default is Yes. |
range
string, optional
|
edit
The values of the left and right slider range. The slider value displays as the slider is moved. Separate values by a comma. |
scale
number, optional
|
edit
Unsigned integer. Defines the slider scale within the value of range. |
value
number, optional
|
edit
The starting slider setting. Must be within the values specified in range. Defaults to the minimum value specified in range. |
onValidate
string, optional
|
edit
The name of a valid JavaScript function used to validate user input; in this case, a change to the default slider value. |
message
string, optional
|
edit
Message text to appear if validation fails. |
onError
string, optional
|
edit
The name of a valid JavaScript function to execute in the event of a failed validation. |
height
number, optional
|
edit
Height of the slider control, in pixels. |
width
number, optional
|
edit
Width of the slider control, in pixels. |
vSpace
number, optional
|
edit
Vertical margin spacing above and below slider control, in pixels. |
hSpace
number, optional
|
edit
Horizontal margin spacing to the left and right of slider control, in pixels. |
align
string, optional
|
edit
Alignment value. |
tickMarkMajor
boolean, optional
|
edit
Yes to render major tickmarks in the slider scale. |
tickMarkMinor
boolean, optional
|
edit
Yes to render minor tickmarks in the slider scale. |
tickMarkImages
string, optional
|
edit
image used for tickmarks |
tickMarkLabels
string, optional
|
edit
label used for tickmarks |
lookAndFeel
string, optional
|
edit
A stylistic choice for the slider. |
vertical
boolean, optional
|
edit
Yes renders the slider in the browser vertically. No renders the slider horizontally. This is the default. |
bgColor
string, optional
|
edit
Background color of slider label. See textColor for color options. Alias: bgcolour |
textColor
string, optional
|
edit
Slider label text color. Valid entries are: black, magenta, cyan, orange, darkgray, pink, gray, white, lightgray, yellow. Alias: textcolour |
font
string, optional
|
edit
Font name for label text. |
fontSize
number, optional
|
edit
Font size for label text measured in points. |
italic
boolean, optional
|
edit
Yes for italicized label text, No for normal text. Default is No. |
bold
boolean, optional
|
edit
Enter Yes for bold label text, No for medium text. Default is No. |
notSupported
string, optional
|
edit
The text to display if a page containing a Java applet-based cfform control is opened by a browser that does not support Java or has Java support disabled. |
Examples
editThere are currently no examples for this tag.
See also
- Ajax features
- <cfform>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)