Class BackToTop
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,BackToTop>
-
- org.patternfly.component.backtotop.BackToTop
-
- All Implemented Interfaces:
Attachable,Finder<HTMLElement>,HasElement<HTMLElement,BackToTop>,HasHTMLElement<HTMLElement,BackToTop>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,BackToTop>,Component,WithText<HTMLElement,BackToTop>
public class BackToTop extends BaseComponentFlat<HTMLElement,BackToTop> implements WithText<HTMLElement,BackToTop>, Attachable
The back to top component is a shortcut that allows users to quickly navigate to the top of a lengthy content page.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackToTopalwaysVisible()Same as alwaysVisible(true)BackToTopalwaysVisible(boolean alwaysVisible)Flag to indicate Accordion content is alwaysVisiblevoidattach(MutationRecord mutationRecord)static BackToTopbackToTop()static BackToTopbackToTop(String text)voiddetach(MutationRecord mutationRecord)BackToTopscrollableSelector(HTMLElement element)BackToTopscrollableSelector(String selector)BackToTopscrollableSelector(Supplier<HTMLElement> element)BackToTopscrollableSelector(By selector)BackToToptext(String text)BackToTopthat()-
Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
-
-
-
Method Detail
-
backToTop
public static BackToTop backToTop()
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
text
public BackToTop text(String text)
- Specified by:
textin interfaceWithText<HTMLElement,BackToTop>
-
alwaysVisible
public BackToTop alwaysVisible()
Same as alwaysVisible(true)
-
alwaysVisible
public BackToTop alwaysVisible(boolean alwaysVisible)
Flag to indicate Accordion content is alwaysVisible
-
scrollableSelector
public BackToTop scrollableSelector(HTMLElement element)
-
scrollableSelector
public BackToTop scrollableSelector(Supplier<HTMLElement> element)
-
that
public BackToTop that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,BackToTop>
-
-