NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

Added an optional format string for `[Dropdown]`

Open nitz opened this issue 1 year ago • 0 comments

Didn't realize that renaming a branch would auto-close the previous PR. 😅

A continuation of #286 after feedback from @rhys-vdw;

Instead of allowing the user to provide individual prefixes or suffixes to the way values are displayed by the [Dropdown] attribute, instead this allows them to provide a standard format string that can manipulate the values as they see fit.

This allows for more custom display for values, with minimal in-class additions by the end user:

E.g.: image

Results in:

image

and

image

nitz avatar Jul 19 '22 13:07 nitz