<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.

Usage

<cfslider
    [textcolor=string]
    [message=string]
    [range=string]
    [notsupported=string]
    [align=string]
    [bold=boolean]
    [lookandfeel=string]
    [onvalidate=string]
    [width=number]
    name=string
    [tickmarkmajor=boolean]
    [value=number]
    [label=string]
    [font=string]
    [tickmarkimages=string]
    [height=number]
    [tickmarkminor=boolean]
    [onerror=string]
    [bgcolor=string]
    [vertical=boolean]
    [scale=number]
    [italic=boolean]
    [hspace=number]
    [vspace=number]
    [tickmarklabels=string]
    [fontsize=number]
    [refreshlabel=boolean]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
textcolor
(string, optional)

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

message
(string, optional)

Message text to appear if validation fails.

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.

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.

align
(string, optional)

Alignment value.

bold
(boolean, optional)

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

lookandfeel
(string, optional)

A stylistic choice for the slider.

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.

width
(number, optional)

Width of the slider control, in pixels.

name
(string, required)

A name for the cfslider control.

tickmarkmajor
(boolean, optional)

Yes to render major tickmarks in the slider scale.

value
(number, optional)

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

label
(string, optional)

A label that displays with the slider control.

font
(string, optional)

Font name for label text.

tickmarkimages
(string, optional)

image used for tickmarks

height
(number, optional)

Height of the slider control, in pixels.

tickmarkminor
(boolean, optional)

Yes to render minor tickmarks in the slider scale.

onerror
(string, optional)

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

bgcolor
(string, optional)

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

vertical
(boolean, optional)

Yes renders the slider in the browser vertically. No renders the slider horizontally. This is the default.

scale
(number, optional)

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

italic
(boolean, optional)

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

hspace
(number, optional)

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

vspace
(number, optional)

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

tickmarklabels
(string, optional)

label used for tickmarks

fontsize
(number, optional)

Font size for label text measured in points.

refreshlabel
(boolean, optional)

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

Examples

There are currently no examples for this tag.