Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot dynamically set start and end value. #17

Open
shettayyy opened this issue Sep 16, 2016 · 0 comments
Open

Cannot dynamically set start and end value. #17

shettayyy opened this issue Sep 16, 2016 · 0 comments

Comments

@shettayyy
Copy link

On click of a button, if I change the [startValue] and [endValue] then the value changes instead of slider moving to the position of the value.

Below is the code:

<ng2-slider
        min="0"
    max="25"
    startValue="{{startVal}}"
    endValue="{{endVal}}"
    stepValue="1"
    skin="elegance-2"
    [normalHandlerStyle]="{ 'background-color': '#ef4f49'}"
    [slidingHandlerStyle]="{
        'border-radius': '50%',
        'background-color': '#ef4f49'
    }"
    >
</ng2-slider>

<button (click)="setSliderVal(10, 20)">Dummy test range slider button</button>
  setSliderVal(start: number, end: number) {
    this.startVal = start;
    this.endVal = end;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant