com.github.fluorumlabs.disconnect.vaadin.DrawerToggle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-vaadin Show documentation
Show all versions of disconnect-vaadin Show documentation
Vaadin components bindings for Disconnect Zero
The newest version!
package com.github.fluorumlabs.disconnect.vaadin;
import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.DrawerToggleElement;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;
import javax.annotation.Nullable;
/**
* The Drawer Toggle component controls the drawer in App Layout component.
*
* <vaadin-app-layout>
* <vaadin-drawer-toggle slot="navbar">Toggle drawer</vaadin-drawer-toggle>
* </vaadin-app-layout>
*
*/
@WebComponent
public class DrawerToggle extends AbstractComponent
implements HasStyle, HasComponents> {
public DrawerToggle() {
super(DrawerToggleElement.TAGNAME());
}
@Nullable
public String ariaLabel() {
return getNode().getAriaLabel();
}
public DrawerToggle ariaLabel(String ariaLabel) {
getNode().setAriaLabel(ariaLabel);
return this;
}
}