Coder Social home page Coder Social logo

thecreation / jquery-asrange Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 10.0 717 KB

a powerful jquery range plugin for choose a range of value

License: GNU Lesser General Public License v3.0

JavaScript 91.39% CSS 8.61%
jquery-plugin range-picker range form-input number-input

jquery-asrange's People

Contributors

dingchqian avatar eddydg avatar iejerry avatar joeylin avatar kaptinlin avatar leoylin avatar thecreation avatar tricknotes avatar vvey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery-asrange's Issues

Negative values

Is it possible to use negative values?

I have a range from -10 to 70 but if I select -10, the value outputs as 0 not -10. How can I fix this?

ie8 bug

在ie8下数值显示错误,无法拖动
5 dv 5jb2_j bctkp 58 ky

RTL direction missing

Right-to-left

there's no support for RTL cases like arabian website where the direction is right to left thus sliders like price range should be reflected.

Vertical is same as horizontal

Checklist

  • I'm using version 0.3.3
  • My browser is: Chrome 57.0.2987.98 (64-bit)

Description

Vertical orientation is the same as horizontal.

How can we reproduce this bug?

Set the option : orientation: "v"

What did you expect to happen?

Vertical range !

What happened instead?

Horizontal range !

How do I create a time range?

As I see it, there isn't any option to create a range other than for regular numbers. Can I also use a range of times?

How to remove autofocus

Checklist

  • I'm using version [0.3.4]
  • My browser is: Chrome, Firefox and other's I havent seen

Description

I have form on my page which has multiple text input fields. I wanted to add a range slider too. I added it via the code below. The issue is that whenever I open the page it is autofocusing on the slider which should not be the case. I checked the documentation to see whether there is any option to alter autofocus or not, but didn't find any. Could any one please help.

This is how I used it in my code:

var rangeSlider = function(){
var slider = $(document).find('.my-range-slider');
slider.each(function(){
    var value = $(this).attr('value');
    $(this).asRange({
        step: $(this).attr('step'),
        range: false,
        min: parseInt($(this).attr('min')),
        max: parseInt($(this).attr('max'))
    });
    $(this).asRange('val', value);
});
};
rangeSlider();

End event does not fire

$('#toleranceRangeSlider').asRange();

$('#toleranceRangeSlider').on('asRange::change', function (e) {
//this works
});

$('#toleranceRangeSlider').on('asRange::end', function (e) {
//does not get called during mouse up
});

how to set initial pointer position

  1. How to set initial ( on load ) pointer position 1st at 0 and the 2nd on 100?
  2. I am using 2 pointer range slider. I prefer to keep js code which is relative to the functionality. Can you please tell me how and what to remove in the js code.

Setting initial values of a slider with "range = true"

The documentation instructs multiple initial values to be set with the syntax:
[ min, max ]
^ This does not work in the cloned version
The example uses the syntax:
min, max ( without brackets )
^ This works fine

Please update your documentation

How to add another OnChange Event?

Hi, I am using this script to create a range slider using WP. I will need to get the range value when it changes and adds a thousand separators.

I have tried to use it by using jQuery onChange event and it's not working? Is there any way to do this?
(function($){ $(function() { $("body").on("asRange::change", function (e) { console.log("NOT Getting the Value"); }); }); })(jQuery);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.