[go: up one dir, main page]

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] Implement onOpen and onClose Methods for Enhanced View Management #1482

Open
mauroalexandre opened this issue Nov 5, 2024 · 1 comment
Labels

Comments

@mauroalexandre
Copy link
Contributor

Feature Description

The goal of this feature is to introduce onOpen and onClose methods within the View class to manage behaviors linked to the lifecycle of views more effectively. These methods will allow developers to define custom scripts and logic that should run when a view is either opened or displayed to the user, or closed. This enhancement seeks to improve the application's interactivity and responsiveness by allowing more granular control over the view's setup and teardown processes.

Expected Benefits

  • Enhanced Flexibility: Developers can easily manage what happens right before a view is displayed and immediately after it's closed.
  • Improved User Experience: By managing view states dynamically, the user experience can be made smoother and more intuitive.

Use Cases

When user open view we can execute script to check client device type (smartphone, desktop, etc) and redirect to view specific for device layout.

image

Pull Request
Pull request here.

@unocelli
Copy link
Member

Thanks @mauroalexandre

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

No branches or pull requests

2 participants