By customizing the display of D3’s brush component, you can make a single-handle slider. Or, by using custom resize handles, you can make a two-handled slider.
Updated from mbostock's original Smooth Slider to including snapping on round values.
# prefix option in the bundle is set to '__assets__' | |
from django.views.generic.simple import redirect_to | |
urlpatterns = patterns('', | |
url(r'^__assets__/static/(?P<url>.*\.css)$', 'views.filter_css'), | |
url(r'^__assets__/static/(?P<url>.*\.less)$', 'views.filter_css'), | |
(r'^__assets__/static/(?P<rest>.*)$', redirect_to, {'url': '/static/%(rest)s'} ), | |
) |
By customizing the display of D3’s brush component, you can make a single-handle slider. Or, by using custom resize handles, you can make a two-handled slider.
Updated from mbostock's original Smooth Slider to including snapping on round values.
function camelToKebabCase(x) = std.asciiLower(std.native('regexSubst')('([A-Z])', x, '-$1')); |