Module

Grain.Virtualized

Package
purescript-grain-virtualized
Repository
purescript-grain/purescript-grain-virtualized

#Props Source

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 Source

virtualList :: forall a. Props a -> VNode

Render a virtual list.