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

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

The newest version!
package com.github.fluorumlabs.disconnect.vaadin.mixins;

import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ScrollMixin;
import com.github.fluorumlabs.disconnect.zero.component.Component;

public interface HasScrollMixin> extends Component {
	/**
	 * Scroll to a specific row index in the virtual list. Note that the row index is
	 * not always the same for any particular item. For example, sorting/filtering/expanding
	 * or collapsing hierarchical items can affect the row index related to an item.
	 *
	 * @param index Row index to scroll to
	 */
	default void scrollToIndex(int index) {
		getNode().scrollToIndex(index);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy