ng2-nouislider icon indicating copy to clipboard operation
ng2-nouislider copied to clipboard

updated README.md

Open whatwouldmarvindo opened this issue 3 years ago • 0 comments

added a section to the readme on how to dynamically update the sliderOptions. For this I simply added a short snippet of code like this

Dynamically update slider options

export class myComponent {
    @ViewChild('mySlider') slider: NouisliderComponent

    updateSliderOptions() {
        this.slider.slider.updateOptions(configObject)
    }
}
<nouislider #mySlider></nouislider>

This is my first PR, please be gentle :)

whatwouldmarvindo avatar Mar 15 '21 10:03 whatwouldmarvindo