Packages

t

react.virtuoso.Virtuoso

VirtuosoProps

trait VirtuosoProps[D] extends Object

Annotations
@JSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VirtuosoProps
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val alignToBottom: UndefOr[Boolean]

    Setting alignToBottom to true aligns the items to the bottom of the list if the list is shorter than the viewport.

    Setting alignToBottom to true aligns the items to the bottom of the list if the list is shorter than the viewport. Use followOutput property to keep the list aligned when new items are appended.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val atBottomStateChange: UndefOr[Function1[Boolean, Unit]]

    Called with true / false when the list has reached the bottom / gets scrolled up.

    Called with true / false when the list has reached the bottom / gets scrolled up. Can be used to load newer items, like tail -f.

  7. val atTopStateChange: UndefOr[Function1[Boolean, Unit]]

    Called with true / false when the list has reached the top / gets scrolled down.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val computeItemKey: UndefOr[Function1[Double, japgolly.scalajs.react.Key]]

    If specified, the component will use the function to generate the key property for each list item.

  10. val data: UndefOr[Array[D]]

    The data items to be rendered.

    The data items to be rendered. If data is set, the total count will be inferred from the length of the array.

  11. val defaultItemHeight: UndefOr[JsNumber]

    By default, the component assumes the default item height from the first rendered item (rendering it as a "probe").

    By default, the component assumes the default item height from the first rendered item (rendering it as a "probe").

    If the first item turns out to be an outlier (very short or tall), the rest of the rendering will be slower, as multiple passes of rendering should happen for the list to fill the viewport.

    Setting defaultItemHeight causes the component to skip the "probe" rendering and use the property value as default height instead.

  12. val endReached: UndefOr[Function1[Double, Unit]]

    Gets called when the user scrolls to the end of the list.

    Gets called when the user scrolls to the end of the list. Receives the last item index as an argument. Can be used to implement endless scrolling.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. val firstItemIndex: UndefOr[JsNumber]

    Use when implementing inverse infinite scrolling - decrease the value this property in combination with data or totalCount to prepend items to the top of the list.

    Use when implementing inverse infinite scrolling - decrease the value this property in combination with data or totalCount to prepend items to the top of the list.

    Warning: the firstItemIndex should **be a positive number**, based on the total amount of items to be displayed.

  16. val fixedItemHeight: UndefOr[JsNumber]

    Can be used to improve performance if the rendered items are of known size.

    Can be used to improve performance if the rendered items are of known size. Setting it causes the component to skip item measurements.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. val headerFooterTag: UndefOr[String]

    Set to customize the wrapper tag for the header and footer components (default is div).

  21. val initialItemCount: UndefOr[JsNumber]

    Use for server-side rendering - if set, the list will render the specified amount of items regardless of the container / item size.

  22. val initialScrollTop: UndefOr[JsNumber]

    Set this value to offset the initial location of the list.

    Set this value to offset the initial location of the list. Warning: using this property will still run a render cycle at the scrollTop: 0 list window. If possible, avoid using it and stick to initialTopMostItemIndex instead.

  23. val initialTopMostItemIndex: UndefOr[JsNumber]

    Set to a value between 0 and totalCount - 1 to make the list start scrolled to that item.

  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  26. val isScrolling: UndefOr[Function1[Boolean, Unit]]

    Called when the list starts/stops scrolling.

  27. val itemContent: UndefOr[Function2[Double, D, Node]]

    Set the callback to specify the contents of the item.

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. val overscan: UndefOr[|[JsNumber, OverScan]]

    Increases the visual window which is used to calculate the rendered items with the specified **amount in pixels**.

    Increases the visual window which is used to calculate the rendered items with the specified **amount in pixels**. Effectively, this makes the component "chunk" the rendering of new items by renderng more items than the necessary, but reducing the re-renders on scroll. Setting { main: number, reverse: number } lets you extend the list in both the main and the reverse scrollable directions.

  32. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  33. val rangeChanged: UndefOr[Function1[ListRange, Unit]]

    Called with the new set of items each time the list items are rendered due to scrolling.

  34. val startReached: UndefOr[Function1[Double, Unit]]

    Called when the user scrolls to the start of the list.

  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toLocaleString(): String
    Definition Classes
    Object
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. val topItemCount: UndefOr[JsNumber]

    Set the amount of items to remain fixed at the top of the list.

    Set the amount of items to remain fixed at the top of the list.

    For a header that scrolls away when scrolling, check the components.Header property.

  39. val totalCount: UndefOr[JsNumber]

    The total amount of items to be rendered.

  40. val totalListHeightChanged: UndefOr[Function1[Double, Unit]]

    Called when the total list height is changed due to new items or viewport resize.

  41. val useWindowScroll: UndefOr[Boolean]

    Experimental - uses the document scroller rather than wrapping the list in its own.

  42. def valueOf(): Any
    Definition Classes
    Object
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped