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.
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.