@HtmlImport(value="bower_components/font-roboto/roboto.html") @HtmlImport(value="bower_components/app-layout/app-scroll-effects/app-scroll-effects.html") @HtmlImport(value="frontend://styles/applayout-styles.html")
@NpmPackage(value="@polymer/app-layout",version="3.0.2") @NpmPackage(value="@polymer/font-roboto",version="3")
@JsModule(value="@polymer/app-layout/app-drawer/app-drawer.js") @JsModule(value="@polymer/app-layout/app-scroll-effects/app-scroll-effects.js") @JsModule(value="@polymer/font-roboto/roboto.js")
@CssImport(value="./styles/applayout-styles.css")
public class AppLayout
extends com.vaadin.flow.component.html.Div
implements com.vaadin.flow.server.PageConfigurator
| Constructor and Description |
|---|
AppLayout(com.vaadin.flow.component.Component menuHeader,
String title) |
AppLayout(com.vaadin.flow.component.html.Image logo,
com.vaadin.flow.component.Component menuHeader,
String title) |
AppLayout(String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearMenuItems() |
void |
configurePage(com.vaadin.flow.server.InitialPageSettings settings) |
boolean |
isMenuVisible() |
void |
setCaption(String caption)
Set the toolbar title
|
void |
setFixed(boolean fixed)
Mantains the header fixed at the top so it never moves away.
|
void |
setHeight(String height) |
void |
setMenuItems(MenuItem... menuitems) |
void |
setMenuVisible(boolean visible) |
void |
setReveals(boolean reveals)
Slides back the header when scrolling back up.
|
void |
setSwipeOpen(boolean swipeOpen)
Create an area at the edge of the screen to swipe open the app-drawer
|
void |
setToolbarIconButtons(MenuItem... menuItems) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickListener, addClickShortcutadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllgetHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFullpublic AppLayout(String title)
public AppLayout(com.vaadin.flow.component.Component menuHeader,
String title)
public AppLayout(com.vaadin.flow.component.html.Image logo,
com.vaadin.flow.component.Component menuHeader,
String title)
public void setHeight(String height)
setHeight in interface com.vaadin.flow.component.HasSizepublic void setMenuItems(MenuItem... menuitems)
public void clearMenuItems()
public void setToolbarIconButtons(MenuItem... menuItems)
public void setMenuVisible(boolean visible)
public boolean isMenuVisible()
public void setCaption(String caption)
public void configurePage(com.vaadin.flow.server.InitialPageSettings settings)
configurePage in interface com.vaadin.flow.server.PageConfiguratorpublic void setFixed(boolean fixed)
public void setReveals(boolean reveals)
public void setSwipeOpen(boolean swipeOpen)
Copyright © 2018–2019 Flowing Code. All rights reserved.