Slider step

UI Components for Angular
Post Reply
zackf
Posts: 2
Joined: 05 Feb 2017, 21:27

10 Feb 2017, 04:57

Can the slider step be set to values <1 e.g. .1, .01, etc. When I set it reflects it but won't let me change it. I looked at the source code on github and it seemed like it should still be working, I'll look further tomorrow but was wondering if anyone knew?

Sasha
Posts: 49
Joined: 08 Mar 2017, 23:46

27 Apr 2017, 22:35

I am facing the same issue.

I set up my p-slider with

[min]="0.0"
[max]="1.0"
[step]="0.005"

It does not work. The slider knob is not draggable, and stays at the far left end ( which is 0).

The slider works only with the step and max as integers >= 1.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

01 May 2017, 19:43

It has to support values less than 1 as well.Because the default min value itself zero.I will check it and get back to you.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

henryou0506
Posts: 1
Joined: 05 Jun 2018, 12:14

05 Jun 2018, 12:46

Hi,

I have tried to use this:
<p-slider formControlName="revenue" [range]="true" [step]="0.1" (onSlideEnd)="onSlideEnd($event, 'revenue')" [min]="DefaultMinRevenue" [max]="DefaultMaxRevenue"></p-slider>

However, the step is not working properly when it is smaller than 1.

Is there any schedule fixed on this issue?

Thanks.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests