JUICE UI

Supercharge ASP.NET
Web Forms with jQuery UI

slider

Interaction — Creates a slider control for the user to interact with.

The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles, and ranges. The handle can be moved with the mouse or the arrow keys.

The slider widget will create handle elements with the class ui-slider-handle on initialization. You can specify custom handle elements by creating and appending the elements and adding the ui-slider-handle class before init. It will only create the number of handles needed to match the length of value/values. For example, if you specify values: [1, 5, 18] and create one custom handle, the plugin will create the other two.

Examples

Default functionality

<juice:slider ID="_Default" runat="server"/>

Snap to Increments

<juice:slider ID="_Snap" runat="server" Value="100" Min="0" Max="500" Step="50" />

Range Slider

<juice:slider ID="_Range" runat="server" Range="true" Min="0" Max="500" Values="75, 300" />

Properties

  • Animate

    Type:
    Object
    Default:
    False
  • Max

    Type:
    Int32
    Default:
    100
  • Min

    Type:
    Int32
    Default:
    0
  • Orientation

    Type:
    String
    Default:
    horizontal
  • Range

    Type:
    Object
    Default:
    False
  • Step

    Type:
    Int32
    Default:
    1
  • Value

    Type:
    Int32
    Default:
    0
  • Values

    Type:
    Int32[]
    Default:
    null

Events

All events are currently of the type EventHandler. The "sender" parameter is a reference to the control, and should be cast appropriately to access the widget's properties and methods.