Skip to content
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

Ttntrifork master #1672

Merged
merged 3 commits into from
Jan 7, 2021
Merged

Ttntrifork master #1672

merged 3 commits into from
Jan 7, 2021

Conversation

eneufeld
Copy link
Member

This is based on #1669 but adds the review comments of @sdirix

…erFormatOptions object passed to the Intl.NumberFormat constructor to the value of the uischema options element `useGrouping`, if defined.

See eclipsesource#1668
@eneufeld eneufeld requested a review from sdirix December 23, 2020 18:11
@coveralls
Copy link

coveralls commented Dec 23, 2020

Coverage Status

Coverage increased (+0.006%) to 88.519% when pulling f5132d7 on eneufeld:ttntrifork-master into f40e95b on eclipsesource:master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The first time Travis ran one of the new testcases failed

Number control custom default grouping behavior
received 1000000 instead of 1,000,000

Any idea how this could happen?

packages/angular-material/src/controls/number.renderer.ts Outdated Show resolved Hide resolved
In some cases the grouping of numbers should be disabled.
The number renderer retieves a `useGrouping` option from config
and uischema with the uischema overriding the config.
Also add tests for the new feature.

Fix eclipsesource#1668
@sdirix sdirix merged commit f07b6be into eclipsesource:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NumberControlRenderer does not provide a way to explicitly disable grouping
4 participants