blackbaud / skyux1

DEPRECATED This site contains the codebase for the AngularJS (1.x) implementation of the SKY UX framework. We no longer support this version of SKY UX, and we recommend that you use the latest version instead. https://developer.blackbaud.com/skyux/
MIT License
51 stars 68 forks source link

Percent preset config for bb-autonumeric filter #427

Closed Blackbaud-JeremyRyan closed 8 years ago

Blackbaud-JeremyRyan commented 8 years ago

Expected behavior

Using {{<value> | bb-autonumeric : 'percent'}} should display the value with a percent sign

Actual behavior

'percent' is not a supported preset

autonumeric.js creates a percent format using aSign of % and pSign of s

Blackbaud-PatrickOFriel commented 8 years ago

Would your use case always show two decimal places? @Blackbaud-JeremyRyan

Blackbaud-JeremyRyan commented 8 years ago

No it should be localized and hopefully have a way to specify the number of decimal places.

Blackbaud-PatrickOFriel commented 8 years ago

In v1.5.15. We provide a base configuration with percent sign and no decimal places. You can override default settings by locale by changing the bbAutonumericConfig percent value. You can also specify options inline in the filter by passing a configuration object with jquery autonumeric options to the filter.