com.github.fluorumlabs.disconnect.vaadin.mixins.HasScrollMixin 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.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);
}
}