Idea React
    Preparing search index...

    Class ScrollNav

    A horizontal scrolling navigation bar based on Bootstrap's nav-scroller pattern. Automatically shows scroll arrow buttons when nav items overflow the container width.

    Hierarchy

    Index

    Constructors

    • Parameters

      • props: NavProps

      Returns ScrollNav

    • Parameters

      • props: NavProps
      • context: any

        value of the parent Context specified in contextType.

      Returns ScrollNav

    Properties

    scrollerRef: RefObject<HTMLDivElement> = ...
    displayName: string = 'ScrollNav'

    Accessors

    clientWidth: number
    scrollLeft: number
    scrollWidth: number

    Methods

    • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

      Returns void

    • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

      Returns void