Slider

A slider with slid and knob

A slider is used to let user specifying a value by scrolling.

A slider accepts a range of value starting from 0 to 100. You could change the maximal

allowed value by the maxpos property.

<slider id="slider" />
<slider curpos=”1” maxpos=”20” />

Class Name

org.zkoss.zul.Slider

Supported Child Components

*NONE

Supported Events

Name

Inherited From

OnScroll

org.zkoss.zk.ui.event.ScrollEvent

Description: Denotes the content of a scrollable component has been scrolled by the user.

OnScrolling

org.zkoss.zk.ui.event.ScrollEvent

Description: Denotes that user is scrolling a scrollable component.

Notice that the component's content (at the server)

won't be changed until onScroll is received. Thus, you

have to invoke the getPos method in the ScrollEvent

class to retrieve the temporary position.

Attributes

Property

Description

Data Type

Default Values

curpos

the current position of the slider

Values: 0 to maxpos

int

0

maxpos

the maximum position of the slider.

int

100

PageIncrement

the amount that the value of curpos changes by when the tray of the scroll bar is clicked

int

10

Methods

Name

Description

Return Data Type

GetOuterAttrs()

String

Inherited From