All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.mixins.HasInteractionsMixin Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy