jsdoc

$.ui.simplicitySlider

Namespace $.ui.simplicitySlider

Slider bound to an input per handle.

Creates a progressive enhanced jQuery UI slider that is backed by one input element per handle.

The widget options are passed through to the created slider. For more information see the jQuery UI slider documentation.
Defined in: ui.simplicitySlider.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
$.ui.simplicitySlider.options
Widget options.
Method Summary
Method Attributes Method Name and Description
<private> <static>  
$.ui.simplicitySlider._inputValueChangeHandler()
Event handler for the change event on an input bound to a single-handled slider.
<private> <static>  
$.ui.simplicitySlider._inputValuesChangeHandlerFactory(valIdx)
Event handler factory for the change event on an input bound to a double-handled slider.
<private> <static>  
$.ui.simplicitySlider._sliderChangeHandler()
Event handler for the slidechange and slide events.
Namespace Detail
$.ui.simplicitySlider
  Single-handled slider
  <input id="weight" name="w" />
  <div id="weightSlider"></div>
  <script type="text/javascript">
    $('#weightSlider').simplicitySlider({
      input: '#weight',
      min: 0,
      max: 10,
      any: 0
    });
  </script>
  Double-handled slider
  <input id="minPrice" name="minP" />
  <input id="maxPrice" name="maxP" />
  <div id="priceSlider"></div>
  <script type="text/javascript">
    $('#priceSlider').simplicitySlider({
      input: ['#minPrice', '#maxPrice'],
      min: 0,
      max: 100,
      values: [0, 100],
      any: [0, 100]
    });
  </script>
Field Detail
<static> $.ui.simplicitySlider.options
Widget options.
input
A single input or an array of two inputs to associate the slider handles with.
changeOnSlide
Set this to true to cause slide events to change the bound input. Defaults to false.
any
Single value (or array of two values for a double-handled slider) which represents slider values that are mapped to the empty string (not selected). Usually one end of the slider acts in this manner.
handleToInput
Optional callback used to map the handle value to the input value.
inputToHandle
Optional callback used to map the input value to the handle value.
sliderImpl
Widget to use for the slider, defaults to 'slider'.
Method Detail
<private> <static> $.ui.simplicitySlider._inputValueChangeHandler()
Event handler for the change event on an input bound to a single-handled slider. Updates the slider with the new value.

<private> <static> $.ui.simplicitySlider._inputValuesChangeHandlerFactory(valIdx)
Event handler factory for the change event on an input bound to a double-handled slider. Updates the slider with the new value.
Parameters:
valIdx
The slider handle number. 0 for the left handle and 1 or the right one.

<private> <static> $.ui.simplicitySlider._sliderChangeHandler()
Event handler for the slidechange and slide events. Updates the associated input elements with the new slider values.

This handler calls change() on the input elements immediately after changing their values.


Documentation generated by JsDoc Toolkit 2.4.0