Spine
Spine copied to clipboard
Can't explicitly define value formatter for attribute
ValueFormatterRegistry
will loop through all unformatters till there is a successful unformatted value. Which means I can't explicitly define what formatter to use for my attribute - resulting in an incorrect formatter being used for my value.
👍 We should have an option to do this.
What do you recon @wvteijlingen. Add an extra property on Field
of a type ValueFormatter
?
It would be good to be able to reuse formatters in the formatters
pool, but there may also be instances when we do not wish to add the formatter to the pool.
Do you have a specific use case where the current system breaks down? I rather not add a formatter property to Field
, because that would mean more configuration. I think for now if you want to use a different formatter, you need to create a different Field
subclass.