Skip to content

Commit 8f7da6a

Browse files
committed
feat(demo): add AppLayout Full Demo
1 parent 3418fea commit 8f7da6a

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/ApplayoutDemoView.java")
10+
@DemoSource("/frontend/styles/app-layout/demo-styles.css")
11+
@PageTitle("AppLayout Full Demo")
12+
@SuppressWarnings("serial")
13+
@Route(value = "applayout/applayout-demo", layout = AppLayoutDemoView.class)
14+
public class AppLayoutDemo extends Div {
15+
16+
public AppLayoutDemo() {
17+
setClassName("wrap-iframe");
18+
IFrame iframe = new IFrame("/applayout-full");
19+
iframe.setClassName("frame");
20+
iframe.setSizeFull();
21+
iframe.getElement().setAttribute("frameBorder", "0");
22+
add(iframe);
23+
}
24+
}

0 commit comments

Comments
 (0)