calculated-color-helper
Access the calculated value of css variables
A helper Component that allows the user to access the calculated value of a css variable.
You need help, miss a feature or found a bug? Create an issue on Github!
Sample code
// create the Component CalculatedColorHelper helper = new CalculatedColorHelper(); TextField field = new TextField(); // Add it to your ui, you won't be able to access the value if the element is not added to the ui. add( helper, field, new Button("Update", buttonClickEvent -> helper.getCalculatedColor(LUMO_PRIMARY_TEXT_COLOR, result -> field.setValue(result))), new Button("SetValue", buttonClickEvent -> helper.setCalculatedColor(LUMO_PRIMARY_TEXT_COLOR, field.getValue())) );
Links
Compatibility
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
- closes issue #1
- updated dependencies
- removed json dependency
- Released
- 2020-09-14
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 14+
- Vaadin 10+ in 0.5
- Browser
- Firefox
- Opera
- Safari
- Google Chrome
- Microsoft Edge