@Description: A widget for creating simple sliders
@File: widget/slider.js
@Param: object Has the following properties
min integer The minimum value for the slider, defaults to 0
max integer The maximum value for the slider, defaults to 100
defaultValue integer The default value for the slider
allowFloats boolean Determines if float values are allowed or rounded
displayName boolean Is the name of the slider displayed on it
displayValue boolean Is the value of the slider displayed on it
@Example:var bri = new sb.widget.slider({
name : 'brightness',
min : 0,
max : 255,
id : 'brightness',
defaultValue : 100,
allowFloats : 0,
onChangeValue : function(){
document.body.style.backgroundColor = 'rgb('+this.value+','+this.value+','+this.value+')';
}
});
bri.appendTo('#brightnessDiv');