-
Notifications
You must be signed in to change notification settings - Fork 730
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
Custom view model generated name #398
Comments
Not currently possible, but it would be possible to add this customization. I can see the usefulness. If anyone wants to work on it I can point them in the right direction :) |
@elihart I can look into it. I am not that familiar with custom views implementation, but I am sure if you point me in the right direction I will be able to tackle it =) |
@geralt-encore that would be great! The general approach I am thinking of is
|
Thanks for the heads-up! |
Yeah you're right, I was kind of figuring that models created in other ways would still fall back to the default suffix. I just realized though that the suffix needs to be looked up in the constructor of We could take a similar approach with the |
Will be included in next release. Thanks @geralt-encore ! |
I am pushing the 2.10.0 release with this change right now. I also updated the wiki to reflect this option. Thanks everyone! |
Is possibile to change the generated name of an automodel custom view? I would like to remove the "Model" suffix because i use a mvvm pattern and there would be a sort of name confusion.
The text was updated successfully, but these errors were encountered: