<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

<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

A name for the cfslider control.

label
string, optional

A label that displays with the slider control.

refreshlabel
boolean, optional

Yes or No. If Yes, the label is not refreshed when the slider is moved. Default is Yes.

range
string, optional

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

Unsigned integer. Defines the slider scale within the value of range.

value
number, optional

The starting slider setting. Must be within the values specified in range. Defaults to the minimum value specified in range.

onvalidate
string, optional

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

Message text to appear if validation fails.

onerror
string, optional

The name of a valid JavaScript function to execute in the event of a failed validation.

height
number, optional

Height of the slider control, in pixels.

width
number, optional

Width of the slider control, in pixels.

vspace
number, optional

Vertical margin spacing above and below slider control, in pixels.

hspace
number, optional

Horizontal margin spacing to the left and right of slider control, in pixels.

align
string, optional

Alignment value.

tickmarkmajor
boolean, optional

Yes to render major tickmarks in the slider scale.

tickmarkminor
boolean, optional

Yes to render minor tickmarks in the slider scale.

tickmarkimages
string, optional

image used for tickmarks

tickmarklabels
string, optional

label used for tickmarks

lookandfeel
string, optional

A stylistic choice for the slider.

vertical
boolean, optional

Yes renders the slider in the browser vertically. No renders the slider horizontally.

This is the default.

bgcolor
string, optional

Background color of slider label. See textColor for color options.

Alias: bgcolour

textcolor
string, optional

Slider label text color. Valid entries are: black, magenta, cyan, orange, darkgray, pink, gray, white, lightgray, yellow.

Alias: textcolour

font
string, optional

Font name for label text.

fontsize
number, optional

Font size for label text measured in points.

italic
boolean, optional

Yes for italicized label text, No for normal text. Default is No.

bold
boolean, optional

Enter Yes for bold label text, No for medium text. Default is No.

notsupported
string, optional

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

There are currently no examples for this tag.

See also