With Idle, you can monitor whether a user is active or inactive in your application.
This is achieved by tracking keyboard and mouse events within the window. You can set a specified inactivity time, after which the userinactive
style is applied to the BODY
element. Additionally, an optional event can be sent to the server-side component.
Try the add-on demo at idle-demo.fly.dev
In the demo you can see CSS color changes applied immediately and text changed on server-side listeners.
- Apply CSS changes based on user inactivity
- Server-side listener for idle/resume
- Add support for Java 8 lambdas and Vaadin 8
- Add support for Vaadin 24
The issues for this add-on are tracked on github.com issues page. All bug reports and feature requests are appreciated.
Contributions are welcome, but there are no guarantees that they are accepted as such. Process for contributing is the following:
- Fork this project
- Create an issue to this project about the contribution (bug or feature) if there is no such issue about it already. Try to keep the scope minimal.
- Develop and test the fix or functionality carefully. Only include minimum amount of code needed to fix the issue.
- Send a pull request for the original project
Add-on is distributed under Apache License 2.0. For license terms, see LICENSE.