I would like the auto range slider with two handles, but can't seem to configure it like that. At the moment only one handle displays.

Comments

Anonymous’s picture

Looking at the example settings I see two values in default value (perhaps something to do with it?) - how do I convey this through the Drupal interface? I tried setting up seperate integer fields for the adjust min and maximum, but it doesn't appear to work (only if I select range as maximum or minimum instead of auto).

'#title' => 'Range Slider',
'#type' => 'slider',
'#default_value' => array('value' => 200, 'value2' => 700),
//'#orientation' => 'vertical',
'#slider_style' => 'orange',
'#range' => TRUE,
'#min' => 10,
'#max' => 1000,
'#step' => 100,
//'#required' => 1,
//'#disabled' => TRUE,
//'#display_inputs' => FALSE,
'#display_values' => TRUE,
'#slider_length' => '100px',

Anonymous’s picture

Category: support » bug
sinasalek’s picture

Category: bug » feature

Yes it only works if you set range to True, Also it's not supported when slider is used as form field.
Turning this into a feature request

Anonymous’s picture

In the Drupal field edit screen there wasn't a "True" option. Is that only available for a custom form and not Drupal configuration form? Thanks!

sinasalek’s picture

As i said two handles are not supported via configuration form, however it will be implement in next versions

Anonymous’s picture

OK - thanks a lot :)

shamsher_alam’s picture

Issue summary: View changes

Hi sinasalek ,

Have you implement two handles with slider minimum and maximum range.

shamsher_alam’s picture

Status: Active » Closed (fixed)
sinasalek’s picture

Status: Closed (fixed) » Postponed