Class Exanpe.Slider
Represents a Slider. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.Slider(id, min, max, displayId, ajax, url, zone)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
Is ajax mode or not
|
|
The HTML id element to display the value, or null
|
|
The id of the instance
|
|
The maximum slider value
|
|
The minimum slider value
|
|
Current request
|
|
Pixels number for 1 unit
|
|
Used to execute an AJAX request for updating the Slider
|
|
This wrapped yui slider instance
|
|
Used to update a Tapestry zone element
|
Method Attributes | Method Name and Description |
---|---|
getValue(value)
Get the value of the slider.
|
|
setValue(value, skipSlider)
Set the value of the slider.
|
Class Detail
Exanpe.Slider(id, min, max, displayId, ajax, url, zone)
Constructor
- Parameters:
- {String} id
- the id of the slider element
- {int} min
- the minimum slider value
- {int} max
- the maximum slider value
- {String} displayId
- the HTML element id to display the value, or null if no display
- {Boolean} ajax
- whether the Slider update is executed in Ajax mode, or not
- {String} url
- the url used to execute AJAX request
- {String} zone
- the Tapestry zone element to update at the end of the ajax request
Field Detail
ajax
Is ajax mode or not
displayId
The HTML id element to display the value, or null
id
The id of the instance
max
The maximum slider value
min
The minimum slider value
request
Current request
unit
Pixels number for 1 unit
url
Used to execute an AJAX request for updating the Slider
yui
This wrapped yui slider instance
zone
Used to update a Tapestry zone element
Method Detail
{int}
getValue(value)
Get the value of the slider.
- Parameters:
- value
- Returns:
- {int} the value of the slider
setValue(value, skipSlider)
Set the value of the slider.
- Parameters:
- {int} value
- the value to set
- {Boolean} skipSlider
- whether the slider value update should me skipped. Set to true if the value initially comes from the YUI component.