I was wondering if there was any way to add a "ballon" popup option for the sliderfield? The "Textfield to slider" module over at http://drupal.org/project/slider_textfield has this feature. It seems like it would be a great addition to the interface.

Of course, it should probably be set so that the admin can use the standard text field (That is currently used in the module), the "popup", or both. (Preferably on a per field basis.... if not, a global setting should also work, just not quite as flexible.)

Just thought that this may be of interest.....

Comments

nickgs’s picture

StatusFileSize
new4.95 KB
new2.67 KB

Exactly what I was looking for too. It seems a bit unintuitive for the UI to have the textfield AND a slider. Attached is a patch that solves this issue. It exposes a setting at the field level to choose whether to "Bubble the value and hide the textfield" or not.

I've also included a screen shot of how this looks and included a little bit of default styling with the patch.

This is something I would like to see rolled into a release. Let me know what you guys think, definitely requires some testing... :)

Thank you.

Nick
http://nickgs.com

nickgs’s picture

Status: Active » Needs review

Flipping to needs review.

rimen’s picture

Status: Needs review » Needs work

Also need fix field_widget_info to (line 19)

'settings' => array('step' => 1, 'bubble' => 'no_bubble'),
rdeboer’s picture

A very welcome addition to this lovely module. Can we have this committed, please? It's been 5 months since the patch was submitted...

rdeboer’s picture

With a bit of manual tweaking I got this patch to apply and work nicely. Thanks Nick!

Note that if you already have a Numeric field with the slider activated and have data entered for this field you won't be able to switch on the bubble display.
It works nicely for new field instances though.

Note also that with the patch installed and "bubble" selected, it unconditionally suppresses the textfield that comes with the slider, but NOT its prefix and postfix.
Personally I quite like the textfield to appear as the slider can be fiddly to use when the step is small compare to the min to max range.
So I've further tweaked the code on my system to make this a third radio option on the widget configuration page.

jrowny’s picture

@RdeBoer can you clean up the patch so I can commit?

rdeboer’s picture

I moved on from this module as in the end I'm after a filter slider widget, not an input widget, so I need the slider to be a range slider, while the underlying field is just a single value.
I don't have my modified patch anymore.
Sorry.

sinasalek’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

The head is 2.x now

sinasalek’s picture

Status: Needs work » Closed (fixed)

Full support for bubble/hint implemented