Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: dispatch a DecorateEvent #55

Open
tacman opened this issue Feb 27, 2025 · 0 comments
Open

Feature Request: dispatch a DecorateEvent #55

tacman opened this issue Feb 27, 2025 · 0 comments

Comments

@tacman
Copy link

tacman commented Feb 27, 2025

What a cool bundle! Thanks for releasing it.

I'd like to be able to customize the label (and maybe a title attribute on the element). In particular, I want to indicate if a particular attribute is set on a property, but that's too specific for your library to handle. Instead, if you dispatched an event that allowed me to decorate the label myself, you could render it.

For example, I'd like to strike deprecated properties, and bold properties that tagged in a "read" Serialize group, and an an icon or text to any property that I've indicated through an attribute or some other way is translatable. And I'd like to prefix the field name with a "?" if it's nullable (either in the entity or in the database).

And maybe an an up/down icon next to fields that have an index, and something else if they're part of an ApiFilter collection.

I've been playing around with an analysis tool that tells me all these things on any class, but integrating that visually would be really powerful.

Also, a user-defined legend, so you can indicate with the dots are next to the field name, and maybe change the dot to a hash if it's a primary key, that kind of stuff.

You've already done the hard work and it looks great.

Thanks for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant