Skip to content

Commit ac85fca

Browse files
committed
feat(demo): add extending layout demo
1 parent 387d90c commit ac85fca

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.flowingcode.vaadin.addons.applayout;
2+
3+
import com.flowingcode.vaadin.addons.demo.DemoSource;
4+
import com.vaadin.flow.component.html.Div;
5+
import com.vaadin.flow.component.html.IFrame;
6+
import com.vaadin.flow.router.PageTitle;
7+
import com.vaadin.flow.router.Route;
8+
9+
@DemoSource("/src/test/java/com/flowingcode/addons/applayout/CustomAppLayout.java")
10+
@DemoSource("/src/test/java/com/flowingcode/addons/applayout/SampleView.java")
11+
@PageTitle("Extending AppLayout Demo")
12+
@SuppressWarnings("serial")
13+
@Route(value = "applayout/extending-applayout-demo", layout = AppLayoutDemoView.class)
14+
public class ExtendingAppLayoutDemo extends Div {
15+
16+
public ExtendingAppLayoutDemo() {
17+
setClassName("wrap-iframe");
18+
IFrame iframe = new IFrame("/view");
19+
iframe.setClassName("frame");
20+
iframe.setSizeFull();
21+
iframe.getElement().setAttribute("frameBorder", "0");
22+
add(iframe);
23+
}
24+
}

0 commit comments

Comments
 (0)