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] Add NumberField.format(), relying on numeraljs #359

Merged
merged 1 commit into from
Mar 17, 2015
Merged

Conversation

fzaninotto
Copy link
Member

nga.field('height', 'number').format('$0,0.00');

Now a value of 1234.5 outputs as '$1,234.50'.

jpetitcolas added a commit that referenced this pull request Mar 17, 2015
[RFR] Add NumberField.format(), relying on numeraljs
@jpetitcolas jpetitcolas merged commit ff9671d into master Mar 17, 2015
@jpetitcolas jpetitcolas deleted the numeral branch March 17, 2015 07:53
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.

2 participants