Introduce decorate
field option
#3728
Labels
😎 Cool
Developer Experience (DX)
Good first issue
Good for newcomers
Help wanted
We could use some help with this
Context
The
format_using
option is useful for formatting the output of a field, but it applies to both display and edit views. This often requires conditional logic to ensure proper behavior in different contexts. For example:To simplify this, lets introduce a
decorate
option. This would function similarly toformat_using
, but only apply to display views (e.g., Show and Index), keeping the edit form unaffected.With
decorate
, the same behavior could be achieved more cleanly:The text was updated successfully, but these errors were encountered: