Skip to content

Commit

Permalink
feat(demo): add AppLayout Full Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mlopezFC committed Aug 16, 2024
1 parent 3418fea commit 8f7da6a
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/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);
}
}

0 comments on commit 8f7da6a

Please sign in to comment.