Package com.storedobject.vaadin
Interface StickyElement
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
AcceptAbandonButtons,ButtonLayout,CenteredLayout,LinkGridButtons
public interface StickyElement
extends com.vaadin.flow.component.HasElement
Interface with default implementation to make an
Element stick to the top of
its container.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsticky()Make this stick to the top when the rest of the content scrolls.static voidsticky(com.vaadin.flow.component.Component component) Make aComponentstick to the top when the rest of the content scrolls.static voidsticky(com.vaadin.flow.dom.Element element) Make anElementstick to the top when the rest of the content scrolls.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
sticky
default void sticky()Make this stick to the top when the rest of the content scrolls. -
sticky
static void sticky(com.vaadin.flow.component.Component component) Make aComponentstick to the top when the rest of the content scrolls.- Parameters:
component- Component to make it sticky
-
sticky
static void sticky(com.vaadin.flow.dom.Element element) Make anElementstick to the top when the rest of the content scrolls.- Parameters:
element- Element to make it sticky
-