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

FBV support #56

Open
radiac opened this issue Jun 24, 2024 · 1 comment
Open

FBV support #56

radiac opened this issue Jun 24, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@radiac
Copy link
Owner

radiac commented Jun 24, 2024

Fastview is built around CBVs, but that can get in the way of putting together a simple view.

FBV support probably won't look entirely like a normal FBV, as some of the view logic makes sense as a CBV - but it should be possible to just write a simple view in a function.

@radiac radiac self-assigned this Jun 24, 2024
@radiac
Copy link
Owner Author

radiac commented Jun 24, 2024

Currently we're trying to define the view outside the class and assign it into the viewgroup - the intention was to implement native FBVs, but that's impractical, and doesn't make sense in the context of the viewgroup class.

Instead, define it as a method on the viewgroup. Behind the scenes we can wrap it in a staticmethod and turn it into a View class - just make sure to call it with the viewgroup as the first argument

@radiac radiac added the enhancement New feature or request label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant