My Vaadin application used to work fine, but now when I want to start it the application is stuck at running npm install: 2022-10-02 15:24:49.482 INFO 27004 — [ main] dev-updater : Running npm install to resolve and optionally download frontend dependencies. This may take a moment, please stand by… And I cant find a way to fix that. Thanks
Tag: vaadin14
Persist dark theme setting and apply in vaadin 14
Hello I want to apply the dark theme at the login of the user in Vaadin 14. But it does not work when i call the toggle function programmatically. I was following this example: https://vaadin.com/learn/tutorials/toggle-dark-theme The setting is already persisted, but how can i apply the theme setting? It works only when the trigger comes from a request thread. Here
Vaadin 14 – Cannot get a Details/AccordionPanel to use window width
Unlike many other Vaadin “container” components, the com.vaadin.flow.component.details.Details and com.vaadin.flow.component.accordion.AccordionPanel classes do not allow for setSizeFull() (I have tried both). I’m trying to figure out how to have one of these on a form and have it expand horizontally across the parent view. Instead, it’s showing a narrow view that is not very useful. It has some reasonable vertical size.
Vaadin 14 show simple HTML Page
I made some kind of internal manual for a webapp that i am developing. I am using Spring Boot and Vaadin 14. How to implement a button that shows that document? The html doc is in my resources folder. I wonder if i am stupid. Or should i write my own controller for this? Answer A Vaadin application itself is
Reloading and deleting from Vaadin ListBox
I am using a ListBox in Vaadin 14, populated by setItems with a list of custom objects. There two things I did not find out how to do: Reload the listbox when the list of items hast changed Deleting a certain object from the listbox Answer You can add/remove items from the underlying collection, and then call ListBox.getDataProvider().refreshAll(). For example,
Is there a way to stack date and time vertically in Vaadins DateTimePicker component?
For choosing some values of different data types in my UI, I use Vaadin’s DateTimePicker introduced in 14.3.x. I am wondering if I can somehow position date and time input fields vertically instead of horizontally? See the picture: The DateTimePicker component is here simply to width horizontically. And I don’t have the option to make all other inputs like the