With or without delay it’s ok. My problem is that I don’t know which window is this (after login) and which event trigger it:
I have ExtAppLoginWindow extends AppLoginWindow extends AbstractWindow.
If I set a script inside to login Button (or a timer under onInit) works only here (before login):
The single solution that works after login seems to be the notifications:
loginButton.addClickListener(e ->{
notifications.create().withCaption("<i>Warning notification after login</i>").withType(Notifications.NotificationType.WARNING)
.withContentMode(ContentMode.HTML).withHideDelayMs(5000).show();
});
but the notification disapear after any click.
I want some notification (could be javascript as well) that persist(after login) - let say 30 seconds -without posibility to close it.