Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add $js->slider()

#7

slider()
Create snippet of Javascript that converts an element into a slider ui widget. See your libraries implementation for additional usage and features.

Options
•handle - The id of the element used in sliding.
•direction - The direction of the slider either 'vertical' or 'horizontal'
•min - The min value for the slider.
•max - The max value for the slider.
•step - The number of steps or ticks the slider will have.
•value - The initial offset of the slider.
Events
•change - Fired when the slider's value is updated
•complete - Fired when the user stops sliding the handle
Example use
$js->get('#element'); $js->slider(array(

'complete' => 'onComplete',
'change' => 'onChange',
'min' => 0,
'max' => 10,
'value' => 2,
'direction' => 'vertical',
'wrapCallbacks' => false

)); If you were using the jQuery engine the following code would be added to the buffer:

$("#element").slider({change:onChange, max:10, min:0, orientation:"vertical", stop:onComplete, value:2});

Reported by Sean Templeton · January 30th, 2010 @ 12:06 AM

State: new
Milestone: DojoCake 1.3.2
Assigned to: Sean Templeton Sean Templeton

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.