Class: ListViewManager

ListViewManager(dataManager, options)

new ListViewManager(dataManager, options)

Parameters:
Name Type Description
dataManager DataManagerInstance.<M>
options
Source:

Extends

  • StandardViewManager

Members

existingModelsList

Source:

filteredInternalModelsList

Source:

finalAttachServerSideInfo :Array.<AttachServerSideViewInfo>

Type:
  • Array.<AttachServerSideViewInfo>
Source:

listDataPaginator :ListDataPaginatorInstance.<M, G_S>

Type:
  • ListDataPaginatorInstance.<M, G_S>
Source:

listDataPaginator :ListDataPaginatorInstance.<M, G_S>

Type:
  • ListDataPaginatorInstance.<M, G_S>
Source:

overrideObserverViewPort :Element

Type:
  • Element
Source:

Methods

autoPopulateViewsFromExistingOrServerSide()

This:
  • ListViewManagerInstance
Source:

dataLength()

Source:

detachViewNodeFromRootParent()

The implementation below is for standard only
Source:

getIntersectionObserverViewPort()

Source:

getListDataPaginator()

Source:

getOrderedArrayIndices()

So, have two versions. CORRECT WAY AS PER ALGO is to return a non-empty queue Scope used to determine if ordered array indices valid (only if scope not model root)
Source:

getParentRootViewNode()

Source:

getViewNodeAtDataPos()

Source:

hookServerSideViews() → {Array.<ServerSideAttachedViewInfo>}

Hooks any server-side views, if server side
Source:
Returns:
Type
Array.<ServerSideAttachedViewInfo>

onCommit()

Source:

registerViewDataHooks()

Source:

runRootAndViewNodeBuild(mutation, data, modelId)

Parameters:
Name Type Description
mutation DataManagerMutations
data Partial.<ValueTypeOfArrayOnly.<M, G_S>>
modelId string
Source:
Returns:

runSingleCommit(mutation, newData, oldData, mappedDataId, modelId, APIScope, originalScope, completeCb, extras)

Parameters:
Name Type Description
mutation DataManagerMutations
newData Partial.<ValueTypeOfArrayOnly.<M, G_S>>
oldData Partial.<ValueTypeOfArrayOnly.<M, G_S>>
mappedDataId string
modelId string
APIScope FinalScope
originalScope NestedChildKeyOf.<M, FinalScope>
completeCb genericFunction
extras
Source:

setUpPaginationIntersector(mutation, modelId, stopPagination)

Parameters:
Name Type Description
mutation DataManagerMutations
modelId string
stopPagination boolean
Source:

setUpPaginator()

Source:

spawnAttachedModels()

TODO: Spawn children only if we have a view node (so not a temp) For temp, spawn on updateAttachedModels
Source:

updatePaginationIntersectorOnDelete(deletedNode)

Parameters:
Name Type Description
deletedNode Element
Source:

validateSelfAsChild()

Allows self to be child. Else, throws error
Source: