question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add handles programmatically

See original GitHub issue

It is posible to add handles dinamically? Something like: slider.add(20); I looked in the documentation and didn’t see something like this. set() doesn’t work because this “delete” the old values and I want to keep them.

Example: jsfiddle

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
leongersencommented, Jun 20, 2018

Yes, something like:

var values = sliderUp.noUiSlider.get();
values.push(50); // Your new handle start value
values.sort();

sliderUp.noUiSlider.destroy();

options.start = values;
noUiSlider.create(sliderUp, options);
1reaction
leongersencommented, Jun 20, 2018

To update a slider handle count, you should destroy and re-create it:

sliderUp.noUiSlider.destroy();
options.start = [20,30,40];
noUiSlider.create(sliderUp, options);

Updated: http://jsfiddle.net/cop2hnb1/5/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add custom layout handles programatically for ...
So my question is.. how can I add new page layout handles (programmatically) for category view? and do it elegantly.
Read more >
How to find all the file handles by a process programmatically?
I have a process "x" which uses "system" C function to start ntpd daemon. I observed that ntpd are passed the open file...
Read more >
Programmatic Modeling Basics - MATLAB & Simulink
Create models, add and connect blocks in models, set parameters and properties, and perform other modeling basics programmatically.
Read more >
set ROI attributes during runtime - fix position and scale ...
So basically I create a ROI of type determined by a user selection widget (rectangle or circle). I can see the automatically created...
Read more >
Programmatically deleting a node after its dragged - GoJS
Programmatically adding a new node after another node is dragged ... new keys for the line handles var keyHandleStart = My_new_handle_start; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found