Skip to content

Commit

Permalink
feat(demo): add extending layout demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mlopezFC committed Aug 16, 2024
1 parent 8f7da6a commit 11536a1
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.flowingcode.vaadin.addons.applayout;

import com.flowingcode.vaadin.addons.demo.DemoSource;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.IFrame;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;

@DemoSource("/src/test/java/com/flowingcode/addons/applayout/CustomAppLayout.java")
@DemoSource("/src/test/java/com/flowingcode/addons/applayout/SampleView.java")
@PageTitle("Extending AppLayout Demo")
@SuppressWarnings("serial")
@Route(value = "applayout/extending-applayout-demo", layout = AppLayoutDemoView.class)
public class ExtendingAppLayoutDemo extends Div {

public ExtendingAppLayoutDemo() {
setClassName("wrap-iframe");
IFrame iframe = new IFrame("/view");
iframe.setClassName("frame");
iframe.setSizeFull();
iframe.getElement().setAttribute("frameBorder", "0");
add(iframe);
}
}

0 comments on commit 11536a1

Please sign in to comment.