From 8f7da6a490811ee1d4fb6bf71c625cde7c11031e Mon Sep 17 00:00:00 2001 From: Martin Lopez Date: Fri, 16 Aug 2024 18:24:28 -0300 Subject: [PATCH] feat(demo): add AppLayout Full Demo --- .../addons/applayout/AppLayoutDemo.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/java/com/flowingcode/vaadin/addons/applayout/AppLayoutDemo.java diff --git a/src/test/java/com/flowingcode/vaadin/addons/applayout/AppLayoutDemo.java b/src/test/java/com/flowingcode/vaadin/addons/applayout/AppLayoutDemo.java new file mode 100644 index 0000000..2a38576 --- /dev/null +++ b/src/test/java/com/flowingcode/vaadin/addons/applayout/AppLayoutDemo.java @@ -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/ApplayoutDemoView.java") +@DemoSource("/frontend/styles/app-layout/demo-styles.css") +@PageTitle("AppLayout Full Demo") +@SuppressWarnings("serial") +@Route(value = "applayout/applayout-demo", layout = AppLayoutDemoView.class) +public class AppLayoutDemo extends Div { + + public AppLayoutDemo() { + setClassName("wrap-iframe"); + IFrame iframe = new IFrame("/applayout-full"); + iframe.setClassName("frame"); + iframe.setSizeFull(); + iframe.getElement().setAttribute("frameBorder", "0"); + add(iframe); + } +}