-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Form] Removed Integer scale option #9542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ integers. By default, all non-integer values (e.g. 6.78) will round down | |
| Rendered as | ``input`` ``number`` field | | ||
+-------------+-----------------------------------------------------------------------+ | ||
| Options | - `grouping`_ | | ||
| | - `scale`_ | | ||
| | - `rounding_mode`_ | | ||
+-------------+-----------------------------------------------------------------------+ | ||
| Overridden | - `compound`_ | | ||
|
@@ -47,8 +46,6 @@ Field Options | |
|
||
.. include:: /reference/forms/types/options/grouping.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/scale.rst.inc | ||
|
||
rounding_mode | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure that the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, rounding_mode option is also hardcoded to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's only the default value. But inside the form type's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooops! Yes you're right. Sorry for my mistake. I've updated the changes accordingly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving the text makes sense to me. |
||
~~~~~~~~~~~~~ | ||
|
||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO we should better move it to the
Overridden
section, saying that the reverse transformation cast the value to an integer, ignoring the scale option at this point.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @HeahDude! Sorry for my late reply.
I'm not really convinced by the interest of keeping this point in the documentation if the user can not customize its behavior by any way. As any value that might have been set by the user to
scale
ofIntegerType
will be overridden by 0, it make sense for me to remove this section from its documentation.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand, but this option is defined anyway and the type can still be extended to customize the transformation process. I would prefer to document the option and its overridden behavior instead of not mentioning anything.