@Tag(value="vaadin-app-layout")
@HtmlImport(value="frontend://bower_components/vaadin-app-layout/src/vaadin-app-layout.html")
public class AppLayout
extends com.vaadin.flow.component.Component
<vaadin-app-layout> element.
Provides a quick and easy way to get a common application layout.| Constructor and Description |
|---|
AppLayout() |
| Modifier and Type | Method and Description |
|---|---|
AppLayoutMenu |
createMenu()
Creates a new empty AppLayoutMenu and sets it as the menu for this AppLayout instance.
|
com.vaadin.flow.dom.Element |
getContent()
Returns the
Element |
com.vaadin.flow.dom.Element |
getMenu() |
void |
removeBranding()
Clears the branding area
|
void |
removeContent()
Removes the displayed content.
|
void |
removeMenu()
Remove the menu.
|
void |
setBranding(com.vaadin.flow.component.Component branding)
Sets the component into branding area
|
void |
setBranding(com.vaadin.flow.dom.Element branding)
Sets the element into branding area
|
void |
setContent(com.vaadin.flow.component.Component content)
Sets the displayed content.
|
void |
setContent(com.vaadin.flow.dom.Element content)
Sets the displayed content.
|
void |
setMenu(com.vaadin.flow.dom.Element menu)
Sets the element to be placed in the menu slot.
|
void |
setMenu(com.vaadin.flow.component.HasElement menu)
Sets the component to be placed in the menu slot.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic void setBranding(com.vaadin.flow.component.Component branding)
branding - Component to set into branding areapublic void setBranding(com.vaadin.flow.dom.Element branding)
branding - Element to set into branding areapublic void removeBranding()
public com.vaadin.flow.dom.Element getContent()
Elementpublic void setContent(com.vaadin.flow.component.Component content)
content - Component to display in the content areapublic void setContent(com.vaadin.flow.dom.Element content)
content - Element to display in the content areapublic void removeContent()
public com.vaadin.flow.dom.Element getMenu()
Element displayed at the content area.public void setMenu(com.vaadin.flow.component.HasElement menu)
menu - HasElement to placed in the menu slot.public void setMenu(com.vaadin.flow.dom.Element menu)
menu - Element to placed in the menu slot.public AppLayoutMenu createMenu()
AppLayoutMenu created.public void removeMenu()
Copyright © 2018–2019 Vaadin Ltd. All rights reserved.