You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, a DocumentData with a paramter of type Money could include a lambda on how to format that anytime it is rendered removing the need for every DocumentData constructor to format before construction.
Instead of this, we can make DocumentData a proto and accept Duration, Instant, and Amount/Money as non-string types, then add configurable formatters as configuration methods to the Barbershop
adrw
changed the title
Add a format paramter to @BarberField to accept a lambda for formatting complex DocumentData values
Add a customized localized formatters for DocumentData Duration, Instant, Money types
Oct 5, 2020
For example, a DocumentData with a paramter of type
Money
could include a lambda on how to format that anytime it is rendered removing the need for every DocumentData constructor to format before construction.The text was updated successfully, but these errors were encountered: