Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package it.zero11.vaadin.course.view;
- import javax.swing.plaf.basic.BasicSliderUI.ScrollListener;
- import com.vaadin.flow.component.html.Footer;
- import com.vaadin.flow.component.html.H1;
- import com.vaadin.flow.component.html.Paragraph;
- import com.vaadin.flow.component.orderedlayout.VerticalLayout;
- import com.vaadin.flow.router.Route;
- @Route("example")
- public class ExampleView extends VerticalLayout {
- public ExampleView() {
- // TODO Auto-generated constructor stub
- setSizeFull();
- add(new H1("Title"));
- VerticalLayout scrollLayout = new VerticalLayout();
- scrollLayout.getStyle().set("overflow-y", "auto");
- for(int i =1; i <=100; i++) {
- scrollLayout.add(new Paragraph("prova" + i));
- }
- add(scrollLayout);
- add(new H1("Footer"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement