How to get the splitter position of the SplitLayout

Hi there,

I want to store the splitter position of the SplitLayout to restore it later. The java API only has the possibility to set the position. How can this be done?

Thanks and Best Regards

There’s a new feature that gives you the position, but it’s not out yet: feat: access updated splitter position from drag end event by flang · Pull Request #5158 · vaadin/flow-components · GitHub ; in the meanwhile, you can use How do I extend the splitter drag end event to obtain the new splitter position. - Vaadin Cookbook

Thanks @vital-koala the recipe from the cookbook works perfectly.