Tatu Lund
Tatu Lund
It is not a question is it possible or not. With current API it is possible already. It is just about performance regarding special cases. Here is one approach of...
I think this is duplicate of https://github.com/vaadin/flow/issues/18120
Upload does not have field nature, but it can be used in a custom field. There is an example of using Upload component in CustomField here https://stackoverflow.com/questions/66154593/vaadin-upload-component-in-binder-e-g-crud-editor
I played with native input element and it seems to happen with that too. I.e. this seems to be intended behavior of Chrome.
There is numerous cases with this. Sometimes you need to show message (e.g. no results with filter), sometimes it could be that Grid list of events which is actually empty,...
It is possible to set the position using JavaScript, example is found here https://github.com/TatuLund/mdi-demo/blob/master/src/main/java/com/example/application/components/window/Window.java#L222
See also: https://vaadin.com/forum/t/embedded-vaadin-flow-component-disappears-after-session-timeout/166573
The workaround is to extend vaadin-grid-tree-toggle and override the default keyboard navigation with our own: Example: https://github.com/TatuLund/tree-flow/blob/v24/src/main/resources/META-INF/resources/frontend/custom-grid-tree-toggle.js And https://github.com/TatuLund/tree-flow/blob/v24/src/main/java/org/vaadin/tatu/Tree.java#L130 In this version ENTER toggles the selection and SPACE toggles the...
There is an API, but it is private https://gist.github.com/TatuLund/c01ffca58869754ea6b419b8c2cbc03b
One reference solution is in Vaadin Plus https://github.com/anezthes/vaadinplus/blob/main/frontend/themes/vaadin%2B/components/vaadin-checkbox.css See switch variant in demo: https://v-herd.eu/jonte-vaadinplus/checkboxes