emberfeather / cf-compendium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format Component

Zoramite opened this issue · comments

Component to allow for formatting a value with a given format and options.

When the format() is called the component will check for formatters that have been added (LIFO) and find the specific format requested. If no formatter is found the original value will be returned.

Any options provided can be used by the formatter to format the value. For example, a date mask could be provided to change the date format.

Added a format handler for being able to add custom formatters and control the format using options.

Closed by 56054f3