十进制数字段在AEM触摸UI对话框中不起作用

问题描述 投票:-1回答:2

我已经在AEM(6.4)触摸UI对话框中创建了一个数字字段。我添加了步骤属性0.1。我也尝试过使用0.01 & 0.001。但是对于某些数字,没有任何模式,则不允许选择它们。对话框/数字字段会给出验证错误,并且不允许关闭对话框。

enter image description here

dialog aem aem-touch-ui aem-core-wcm-components
2个回答
0
投票

[step应该是double,而不是String


0
投票

关于此问题,使用step-String-0.0002允许我输入最多三位的十进制值,并显示超出此位数的验证错误。enter image description hereenter image description here

现在,使用step-String-any。虽然,它的步进值为1,但允许我输入任何十进制值。enter image description hereenter image description here

参考-https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/numberfield/index.html

© www.soinside.com 2019 - 2024. All rights reserved.