Class BackToTop

java.lang.Object
org.patternfly.component.BaseComponentFlat<elemental2.dom.HTMLElement,BackToTop>
org.patternfly.component.backtotop.BackToTop
All Implemented Interfaces:
Attachable, Finder<elemental2.dom.HTMLElement>, HasElement<elemental2.dom.HTMLElement,BackToTop>, HasHTMLElement<elemental2.dom.HTMLElement,BackToTop>, IsElement<elemental2.dom.HTMLElement>, TypedBuilder<elemental2.dom.HTMLElement,BackToTop>, Component, WithText<elemental2.dom.HTMLElement,BackToTop>

public class BackToTop extends BaseComponentFlat<elemental2.dom.HTMLElement,BackToTop> implements WithText<elemental2.dom.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.
See Also:
  • Method Details

    • backToTop

      public static BackToTop backToTop()
    • backToTop

      public static BackToTop backToTop(String text)
    • attach

      public void attach(elemental2.dom.MutationRecord mutationRecord)
      Specified by:
      attach in interface Attachable
    • detach

      public void detach(elemental2.dom.MutationRecord mutationRecord)
      Specified by:
      detach in interface Attachable
    • text

      public BackToTop text(String text)
      Specified by:
      text in interface WithText<elemental2.dom.HTMLElement,BackToTop>
    • alwaysVisible

      public BackToTop alwaysVisible()
    • alwaysVisible

      public BackToTop alwaysVisible(boolean alwaysVisible)
      Flag to indicate Accordion content is alwaysVisible
    • scrollableSelector

      public BackToTop scrollableSelector(String selector)
    • scrollableSelector

      public BackToTop scrollableSelector(By selector)
    • scrollableSelector

      public BackToTop scrollableSelector(elemental2.dom.HTMLElement element)
    • scrollableSelector

      public BackToTop scrollableSelector(Supplier<elemental2.dom.HTMLElement> element)
    • that

      public BackToTop that()
      Specified by:
      that in interface TypedBuilder<elemental2.dom.HTMLElement,BackToTop>
    • text

      public String text()
      Specified by:
      text in interface WithText<elemental2.dom.HTMLElement,BackToTop>