Open DevPlus31 opened 5 years ago
Updated CLI to 5.3.2 I still get the same effect.
I have the same issue using Angular.
If I set the minimum equal to 0 or I don't set the minimum, the maximum value is ignored.
Maximum is ignored here:
`
`
Maximum is set here:
<TKPropertyEditorParams tKEditorParams minimum="1" maximum="50"></TKPropertyEditorParams>
@DevPlus31 actually these 2 examples in nativescript-ui-samples-vue illustrate 2 separate issues:
1) the Editors
example is wrong - it tries to set limits for the stepper editor through json metadata using maximum
and minimum
- while the documented acceptable values are max
and min
.
2) the Editors using markup
example illustrates the issue that is also observed by @Pandishpan that when minimum
is not present or when its value is 0
, then the value of maximum
is ignored.
Since I don't use Angular I never saw the angular docs.
There's some confusion because As I can see on Vue docs https://docs.nativescript.org/vuejs/ns-ui/DataForm/dataform-editors
The editorParams is using minimum and maximum value instead of max and min
'editorParams': { 'minimum': 0, 'maximum': 20, 'step': 2, }
I think it's better to make iOS accept both values min or minimum as it's on Android.
Please, provide the details below:
The Stepper seems to ignore the maximum value on NS Vue. the issue is only on iOS.
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital letter. RadDataForm seems to ignore maximum value of the Stepper editor
Which platform(s) does your issue occur on?
iOS/Android/Both (if applicable tell us the specific version of the platform) iOS only (Android working fine)
Please provide the following version numbers that your issue occurs with:
package.json
)tns --version
to fetch it)package.json
)"tns-android"
and"tns-ios"
properties in thepackage.json
) CLI; 5.2.3 tns-core-modules: 5.3.1 Runtime iOS: 5.3.1 NS Vue: 2.2.2Please tell us how to recreate the issue in as much detail as possible.
Stepper surpass the maximum value.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
You can try with nativescript-ui-samples-vue DataForm samples click on Editors and Editors using markup.