Module

Grain.Virtualized

#Props

type Props a = { calcRowHeight :: a -> Number, height :: Number, rowView :: { row :: a, style :: String } -> VNode, rows :: Array a }

The type of virtual list props.

  • height: The px height of container
  • rows: The data for row view
  • rowView: The renderer of a row
  • calcRowHeight: The calculator of a row view's px height

#virtualList

virtualList :: forall a. Props a -> VNode

Render a virtual list.

Modules