Module

ReactNative.Components.ListView

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See ListView

#SectionIndex Source

#RowIndex Source

#ListViewProps Source

type ListViewProps a section blob eff = ScrollViewPropsEx eff (dataSource :: ListViewDataSource' blob a section, enableEmptySections :: Boolean, initialListSize :: Int, onChangeVisibleRows :: EventHandler2 eff RowMap RowMap, onEndReached :: EventHandler eff (Nullable ScrollEvent), onEndReachedThreshold :: Int, pageSize :: Int, renderFooter :: Unit -> ReactElement, renderHeader :: Unit -> ReactElement, renderRow :: RowRenderer a, renderScrollComponent :: forall props. props -> ReactElement, renderSectionHeader :: SectionRenderer section, renderSeparator :: Fn3 SectionIndex RowIndex Boolean ReactElement, scrollRenderAheadDistance :: Int)

#listView Source

listView :: forall section a blob. ListViewDataSource' blob a section -> (a -> ReactElement) -> ReactElement

Create a list view with a data source and a simple row rendering function

#listView' Source

listView' :: forall eff section a blob. Prop (ListViewProps blob a section eff) -> ListViewDataSource' blob a section -> RowRenderer a -> ReactElement

Create a list view with props, a data source and a row renderer

#listViewDataSource Source

listViewDataSource :: forall a. Array a -> ListViewDataSource a

Create a ListViewDataSource from an Array

Uses reference equality for rowHasChanged

#sectionListViewDataSource Source

sectionListViewDataSource :: forall section a blob. DataSourceSectionCloneable blob a section => blob -> ListViewDataSource' blob a section

#listViewDataSource' Source

listViewDataSource' :: forall section a blob. Prop (ListViewDataSourceProps blob a section) -> ListViewDataSource' blob a section

#cloneWithRows Source

#cloneWithRows' Source

cloneWithRows' :: forall a blob. Maybe (Array RowIndex) -> (DataSourceRowCloneable blob a => ListViewDataSource' blob a blob -> blob -> ListViewDataSource' blob a blob)

#DataSourceRowCloneable Source

class DataSourceRowCloneable blob a | blob -> a

Instances

#DataSourceSectionCloneable Source

class DataSourceSectionCloneable blob a section | blob -> a, blob -> section

Instances

#cloneWithRowsAndSections Source

cloneWithRowsAndSections :: forall section a blob. DataSourceSectionCloneable blob a section => ListViewDataSource' blob a section -> blob -> ListViewDataSource' blob a section

#cloneWithRowsAndSections' Source

cloneWithRowsAndSections' :: forall section a blob. DataSourceSectionCloneable blob a section => ListViewDataSource' blob a section -> blob -> Maybe (Array SectionIndex) -> Maybe (Array (Array RowIndex)) -> ListViewDataSource' blob a section

#getRowCount Source

getRowCount :: forall section a blob. ListViewDataSource' blob a section -> Int

#getRowAndSectionCount Source

getRowAndSectionCount :: forall section a blob. ListViewDataSource' blob a section -> Int

#rowShouldUpdate Source

rowShouldUpdate :: forall section a blob. ListViewDataSource' blob a section -> SectionIndex -> RowIndex -> Boolean

#getRowData Source

getRowData :: forall section a blob. ListViewDataSource' blob a section -> SectionIndex -> RowIndex -> a

#getRowIDForFlatIndex Source

getRowIDForFlatIndex :: forall section a blob. ListViewDataSource' blob a section -> Int -> Nullable String

#getSectionIDForFlatIndex Source

getSectionIDForFlatIndex :: forall section a blob. ListViewDataSource' blob a section -> Int -> Nullable String

#getSectionLengths Source

getSectionLengths :: forall section a blob. ListViewDataSource' blob a section -> Array Int

#sectionHeaderShouldUpdate Source

sectionHeaderShouldUpdate :: forall section a blob. ListViewDataSource' blob a section -> SectionIndex -> Boolean

#getSectionHeaderData Source

getSectionHeaderData :: forall section a blob. ListViewDataSource' blob a section -> SectionIndex -> section

#ListViewDataSource' Source

#RowRenderer Source

data RowRenderer :: Type -> Type

#SectionRenderer Source

#rowRenderer Source

rowRenderer :: forall a. (a -> ReactElement) -> RowRenderer a

#rowRenderer' Source

#sectionRenderer Source

sectionRenderer :: forall section. (section -> ReactElement) -> SectionRenderer section

#sectionRenderer' Source

sectionRenderer' :: forall section. (section -> SectionIndex -> ReactElement) -> SectionRenderer section