-
Notifications
You must be signed in to change notification settings - Fork 6
Added documentation on Percent control type #64
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
base: master
Are you sure you want to change the base?
Conversation
eschenfeldt
left a comment
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 think we'll also need to add Percent to the supported control lists for the options that work with it. Which definitely includes FormattingLocale and FormattingOptions, but probably is a bunch of other ones, too. (This is something that it would be really nice to automate but I'm pretty sure we don't have anything for it.)
|
|
||
| ## Overview | ||
|
|
||
| The **Percent** control supports entering a number as a percentage while still storing the number internally as it's mathematical value. For example: |
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.
"its" rather than "it's"
| - Enter 50 to represent 50% (stored as 0.5 in the DataPortal) | ||
| - Enter 72.6 to represent 72.6% (stored as 0.726 in the DataPortal) | ||
|
|
||
| After entering a number it is then displayed formatted using Intl.NumberFormat. |
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.
Can we make Intl.NumberFormat a link to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat?
| - [**Max**](../06.Setting-Details/Max.md): This defines the maximum possible numeric input into the Percent field. All input values above will display an error box to the user. | ||
| - [**DefaultValue**](../06.Setting-Details/DefaultValue.md): This defines the default value that is displayed to the user and stored in number representation on the database upon initialization. | ||
|
|
||
| **Note:** Min, Max, and DefaultValue should be the numeric representation of the number. For example for a max of 50%, Max should be set ot 0.5. |
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.
typo: "ot" -> "to"
| "content": "Added control type for Percents to DataPortals", | ||
| "date": "1/8/2026", | ||
| "type": "major", | ||
| "changesetNum": "22614" |
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 think we need the product area for major updates (and I'm fine with this being a major update).
No description provided.