@Tag(value="fc-applayout")
@JsModule(value="@flowingcode/fc-applayout/fc-applayout.js")
@NpmPackage(value="@flowingcode/fc-applayout",
version="0.9.6")
@CssImport(value="./styles/applayout-styles.css",
themeFor="fc-applayout")
public class AppLayout
extends com.vaadin.flow.component.html.Div
implements com.vaadin.flow.router.RouterLayout
| Constructor and Description |
|---|
AppLayout() |
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 |
addToTitleSection(com.vaadin.flow.component.Component component) |
void |
clearMenuItems() |
void |
clearToolbarIconButtons() |
boolean |
isMenuVisible() |
void |
setCaption(String caption)
Sets the toolbar title
|
void |
setDrawerBelowHeader(boolean drawerBelowHeader)
Sets the drawerBelowHeader attribute so the drawer will be show below
the header of the applayout
|
void |
setDrawerPersistent(boolean drawerPersistent)
Sets the persistent attribute so it will make the drawer to be always
opened in a non-modal way
|
void |
setDrawerRightAlignment(boolean drawerRightAlignment)
Sets the drawerBelowHeader attribute so the drawer will be show below
the header of the applayout
|
void |
setFixed(boolean fixed)
Sets the fixed attribute so it mantains the header fixed at the top
so it never moves away.
|
void |
setMenuHeader(com.vaadin.flow.component.Component menuHeader)
Sets the component to be shown before the menu in the drawer.
|
void |
setMenuItems(com.vaadin.flow.component.Component... someMenuitems) |
void |
setMenuVisible(boolean visible) |
void |
setReveals(boolean reveals)
Sets the reveals attribute so it slides back the header when scrolling
back up.
|
void |
setSwipeOpen(boolean swipeOpen)
Sets the swipeOpen attribute so it creates 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, waitremoveRouterLayoutContent, showRouterLayoutContentaddClickListener, addClickShortcutgetChildren, getComponentAt, getComponentCount, indexOf, replaceadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic AppLayout()
public 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 addToTitleSection(com.vaadin.flow.component.Component component)
public void setMenuHeader(com.vaadin.flow.component.Component menuHeader)
menuHeader - public void setMenuItems(com.vaadin.flow.component.Component... someMenuitems)
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)
caption - public void setFixed(boolean fixed)
fixed - public void setReveals(boolean reveals)
reveals - public void setSwipeOpen(boolean swipeOpen)
swipeOpen - public void setDrawerPersistent(boolean drawerPersistent)
drawerPersistent - public void setDrawerBelowHeader(boolean drawerBelowHeader)
drawerBelowHeader - public void setDrawerRightAlignment(boolean drawerRightAlignment)
drawerBelowHeader - Copyright © 2018–2022 Flowing Code. All rights reserved.