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.

updateOptions no update format

See original GitHub issue

Hello, updateOptions function works to change ranges but I can not change the format, I also need to update if is 0 or 1 decimating but I fail to do this. May review? this is my code.


function updateSliderRangeYuzo ( input_object, start, min, max, steps, decimals, value, text_show ) {
        input_object.noUiSlider.updateOptions({
            range: {
                'min': min,
                'max': max
            },
            start: [ start ],
            step: steps,
            format: wNumb({
                decimals: decimals, // NO WORK, NO UPDATE
            })
        });
// Forcing upgrade, but does not work
        input_object.noUiSlider.on('update', function( values, handle ) {
            var value = values[handle];
             $(text_show).text( value ); 
             $(value).val( value ); 
        });
}


$("#yuzo_theme_standdar_filter_normal").on("change",function(){

            updateSliderRangeYuzo( document.getElementById('yuzo_theme_standar__filter_normal_value-range')  ,
                                   1,
                                   0.1,
                                   10,
                                   0.1,
                                   1,
                                   document.getElementById('yuzo_theme_standar__filter_normal_value'),
                                   document.getElementById('yuzo_theme_standar__filter_normal_value-value')
                                    );

    });

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
leongersencommented, Apr 22, 2016

The documentation also does not list it as an updateable option. I think it could be added, though.

0reactions
github-actions[bot]commented, Jun 2, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

chartoptions not updating through updateOptions ... - GitHub
i am implementing chart drilldown so updating option from chartOptions1 to chartOptions2 not working properly. data(xaxis.categories) gets ...
Read more >
noUiSlider - Disabling, Updating and Styling - Refreshless.com
Events are unbound when destroying a slider. The update method can be called as: slider.noUiSlider.updateOptions( newOptions, ...
Read more >
Apexcharts updateOptions xaxis label - Stack Overflow
I have such an example in which I would like to change the series of data ... this is some weird format, I...
Read more >
-u (Update options) switch - 7-Zip
Specifies how to update files in an archive and (or) how to create new archives. ... are no problems, if both file system...
Read more >
Insert or Update in a Single Operation — Java Sync - MongoDB
Inserts a document if there are no matches to your query filter ... with the updateOne() or updateMany() methods, pass true to UpdateOptions.upsert()...
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