strum icon indicating copy to clipboard operation
strum copied to clipboard

Formatting on enum properties.

Open redactedontop opened this issue 1 year ago • 2 comments

Hallo!

I'm using enum properties for a project, and I want 2 props: pid & code. Right now, I have to set code as the result of to_string, as I want a "custom" enum field. Could formatting (like {0}) be implemented on enum properties?

Thanks, Alex <3

redactedontop avatar Dec 20 '24 17:12 redactedontop

@wwqwq2313 Why write a separate function? Implement it in the same function.

redactedontop avatar Dec 20 '24 17:12 redactedontop