Directory

← Back

Theme Cookie

Preserves the used theme in a cookie

Author

Rating

Popularity

<100

Helper that stores the name of the theme selected by the user in a cookie. Later on when the user opens the application, the cookies is read to automatically use the same theme.

Sample code

themeSelector.addValueChangeListener(valueChange -> {
    ThemeCookie.setTheme(valueChange.getValue());
});

Compatibility

0.1
(24.4)
(24.3)
(24.2)
(24.1)
(24)
(23)
(22)
(21)
(20)
(19)
(18)
(17)
(16)
(15)
(14)
(13)
(12)
(11)
(10)
8.0-8.21Y
(7.7)
(7.6)
(7.5)
(7.4)
(7.3)
(7.2)
(7.1)
(7.0)
(6.8)
(6.7)
(6.6)
(6.5)
(6.4)
(6.3)
(6.2)
(6.1)
(6.0)

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
2018-10-10
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Browser
Browser Independent

Theme Cookie - Vaadin Add-on Directory

Preserves the used theme in a cookie Theme Cookie - Vaadin Add-on Directory
Helper that stores the name of the theme selected by the user in a cookie. Later on when the user opens the application, the cookies is read to automatically use the same theme.
Source Code
Issue tracker

Theme Cookie version 0.1

Online