com.github.fluorumlabs.disconnect.vaadin.mixins.HasInteractionsMixin 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.mixins;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.InteractionsMixin;
import com.github.fluorumlabs.disconnect.zero.component.Component;
public interface HasInteractionsMixin> extends Component {
/**
* If true, the submenu will open on hover (mouseover) instead of click.
*/
default boolean openOnHover() {
return getNode().isOpenOnHover();
}
/**
* If true, the submenu will open on hover (mouseover) instead of click.
*/
default T openOnHover(boolean openOnHover) {
getNode().setOpenOnHover(openOnHover);
return (T) this;
}
}