@Tag(value="app-drawer")
@HtmlImport(value="bower_components/app-layout/app-drawer/app-drawer.html") @HtmlImport(value="bower_components/iron-scroll-target-behavior/iron-scroll-target-behavior.html")
@NpmPackage(value="@polymer/app-layout",
version="3.0.2")
@JsModule(value="@polymer/app-layout/app-drawer/app-drawer.js")
public class AppDrawer
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasComponents
| Constructor and Description |
|---|
AppDrawer(com.vaadin.flow.component.Component headerComponent) |
AppDrawer(String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.vaadin.flow.component.Component... components) |
void |
close()
Close the app-drawer.
|
void |
remove(com.vaadin.flow.component.Component... components) |
void |
removeAll() |
void |
setMenuItems(Collection<? extends com.vaadin.flow.component.Component> menuItems) |
void |
setSwipeOpen(boolean swipeOpen) |
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, waitpublic AppDrawer(String title)
public AppDrawer(com.vaadin.flow.component.Component headerComponent)
public void setSwipeOpen(boolean swipeOpen)
public void add(com.vaadin.flow.component.Component... components)
add in interface com.vaadin.flow.component.HasComponentspublic void remove(com.vaadin.flow.component.Component... components)
remove in interface com.vaadin.flow.component.HasComponentspublic void removeAll()
removeAll in interface com.vaadin.flow.component.HasComponentspublic void setMenuItems(Collection<? extends com.vaadin.flow.component.Component> menuItems)
public void close()
Copyright © 2018–2019 Flowing Code. All rights reserved.