@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.0")
@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 |
addToolbarIconButtonAsFirst(com.vaadin.flow.component.Component component) |
void |
addToolbarIconButtons(com.vaadin.flow.component.Component... components) |
void |
clearMenuItems() |
void |
clearToolbarIconButtons() |
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(com.vaadin.flow.component.Component... 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(com.vaadin.flow.component.Component... components) |
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(com.vaadin.flow.component.Component... menuitems)
public void clearMenuItems()
public void setToolbarIconButtons(com.vaadin.flow.component.Component... components)
public void addToolbarIconButtons(com.vaadin.flow.component.Component... components)
public void addToolbarIconButtonAsFirst(com.vaadin.flow.component.Component component)
public void clearToolbarIconButtons()
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–2020 Flowing Code. All rights reserved.