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

[RFR] Number field can now set fractionSize #351

Merged
merged 2 commits into from
Mar 9, 2015
Merged

Conversation

fzaninotto
Copy link
Member

Specializing the 'number' type to allow to set the fractionSize:

nga.field('height', 'number').fractionSize(2);

The value 123.45 will render as:

  • 123.45 by default
  • 123 when fractionSize is 0
  • 123.4 when fractionSize is 1
  • 123.45 when fractionSize is 2
  • 123.456 when fractionSize is 3
  • etc.

fzaninotto added a commit that referenced this pull request Mar 9, 2015
[RFR] Number field can now set fractionSize
@fzaninotto fzaninotto merged commit b23d2bd into master Mar 9, 2015
@fzaninotto fzaninotto deleted the number_column branch March 9, 2015 09:34
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.

None yet

1 participant