Closed bori87 closed 6 years ago
this is the number that you provide as the source for the dataform
This is not working...
Can you share your code snippet ?
25 in the model is the source value for the stepper. I want to user pick a value in a range between 1-25 but start value to be 1.
You need to set property people = 25 in NpuFormOrder
This is what i am doing.
@bori87 thank you for reporting this issue!
Indeed there is no exposed directive to set the minimum
, maximum
and step
values of your Stepper
editor. Logging this as a bug - keep track of this issue for possible workarounds and fix.
Any updates on it?
@tsonevn Please update title of this issue to indicate this impacts Slider as well.
For a non 0-1 range slider support, e.g. 2-10 range slider should I log a different issue as feature request, or is it already part of team's backlog?
Hi @noumaans, You do not need to open a new issue. The feature for changing the range of the Slider is part of implementing the functionality for setting the max and min value.
Would be happy to test this out if there is a beta build available.
@DimitarTachev / @DimitarTodorov Step value on slider is not working on iOS - can you please confirm? Here is my slider code:
<TKPropertyEditor tkEntityPropertyEditor type="Slider">
<TKPropertyEditorParams tKEditorParams minimum="5" maximum="50" step="1">
</TKPropertyEditorParams>
</TKPropertyEditor>
On iOS this still yields floating point values in propertyCommitted event.
Tested with nativescript-ui-dataform@3.5.2
@noumaans, the step
property is meant to be used in a Stepper. The Slider is respecting only the minimum
and maximum
properties. This issue was related to the Angular usage of these properties. Please open a new one if you need the step property in a Slider.
@DimitarTachev Can you confirm, are minimum and maximum supported in Angular Slider controls currently? (nativescript-ui-dataform version 3.7.1)
The minimum and maximum are working on Android but not in iOS. I am not sure if I should open a new bug or if I'm missing something.
Hi @yoat, Yes minimum and maximum are supported for the Slider editor in both android and iOS. I updated the code for the Slide in this example with:
<TKPropertyEditor tkEntityPropertyEditor type="Slider">
<TKPropertyEditorParams tKEditorParams minimum="50" maximum="200"></TKPropertyEditorParams>
</TKPropertyEditor>
and the updated range was visible in the example (as the initial value of the slider is 70)
How to set max value in Stepper? I am able to pick a number in a range between 1-10