ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

DataForm [Angular] setting Stepper and Slider minimum, maximum and step values #338

Closed bori87 closed 6 years ago

bori87 commented 6 years ago

How to set max value in Stepper? I am able to pick a number in a range between 1-10

nmongiya commented 6 years ago

this is the number that you provide as the source for the dataform

bori87 commented 6 years ago

This is not working...

nmongiya commented 6 years ago

Can you share your code snippet ?

bori87 commented 6 years ago

stepper stepper_

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.

nmongiya commented 6 years ago

You need to set property people = 25 in NpuFormOrder

bori87 commented 6 years ago

This is what i am doing. form formdump

NickIliev commented 6 years ago

@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.

MuhammadTahir92 commented 6 years ago

Any updates on it?

noumaans commented 6 years ago

@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?

tsonevn commented 6 years ago

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.

noumaans commented 6 years ago

Would be happy to test this out if there is a beta build available.

noumaans commented 6 years ago

@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

DimitarTachev commented 6 years ago

@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.

yoat commented 6 years ago

@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.

tgpetrov commented 6 years ago

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)