@Tag(value="vaadin-drawer-toggle")
@NpmPackage(value="@vaadin/vaadin-app-layout",
version="2.2.0")
@JsModule(value="@vaadin/vaadin-app-layout/src/vaadin-drawer-toggle.js")
public class DrawerToggle
extends Button
<vaadin-drawer-toggle> element. It is a
button that allows the user to open and close the drawer. To use it, add it
to the AppLayout, typically in the navbar slot.
AppLayout layout = new AppLayout();
layout.addToNavbar(new DrawerToggle());
| Constructor and Description |
|---|
DrawerToggle() |
| Modifier and Type | Method and Description |
|---|---|
void |
setIcon(com.vaadin.flow.component.Component icon) |
click, clickInClient, getIcon, isAutofocus, isDisableOnClick, isIconAfterText, onAttach, setAutofocus, setDisableOnClick, setIconAfterText, setTextaddThemeVariants, addToPrefix, addToSuffix, isAutofocusBoolean, isDisabledBoolean, remove, removeAll, removeThemeVariants, setDisabledaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddClickListener, addClickShortcutaddFocusShortcut, blur, focus, getTabIndex, setTabIndexCopyright © 2025. All rights reserved.