here’s the library from @owen.campbell that seems like it might be just what you’re looking for:
If you’re using an event that you haven’t defined as part of the CustomComponent
or you want to create a custom event for an arbitrary Component use x-validating
instead of validating
linked docs: Anvil Docs | Anvil Components