Directory

← Back

easter-egg

Simple component allowing to add easter eggs

Author

Rating

Popularity

<100

Component watching the user's key strokes to trigger event

Sample code

EasterEgg konamiEgg = new EasterEgg(
		e -> Notification.show("konami", 2000, Position.MIDDLE)
);
EasterEgg vaadinEgg = new EasterEgg(
		e -> Notification.show("vaadin", 2000, Position.MIDDLE),
		KeyCode.V, KeyCode.A, KeyCode.A, KeyCode.D, KeyCode.I, KeyCode.N
);
add(new Button("add konami", e -> UI.getCurrent().add(konamiEgg)));
add(new Button("remove konami", e -> UI.getCurrent().remove(konamiEgg)));
add(new Button("add vaadin", e -> UI.getCurrent().add(vaadinEgg)));
add(new Button("remove vaadin", e -> UI.getCurrent().remove(vaadinEgg)));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2019-09-08
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 10+
Browser
N/A

easter-egg - Vaadin Add-on Directory

Simple component allowing to add easter eggs easter-egg - Vaadin Add-on Directory
Component watching the user's key strokes to trigger event
Online