samie / Idle

Idle - User inactivity tracking for Vaadin
https://vaadin.com/directory/component/idle
Apache License 2.0
7 stars 1 forks source link

Modernise add-on for Vaadin 8 #6

Closed maxschuster closed 5 years ago

maxschuster commented 7 years ago

This add-ons API is quite different from Vaadin 8s API.

I would like to introduce event listeners, as I know them from the Framework:

Idle idle = Idle.track(ui, 5000);
idle.addUserActiveListener(e -> status.setValue("You are now active"));
idle.addUserInactiveListener(e -> status.setValue("You are now idle"));

Also the javascript part of this add-on has some polyfill code thats not required for officially Vaadin 8 supported browsers anymore. I would like to remove it.

As a training I have made a fork of this project where I made those changes and also created some tests for it. 😄

maxschuster commented 7 years ago

Any chance that this or #5 will get merged?

maxschuster commented 5 years ago

Thanks for merging the PR 👍