new ListViewManager(dataManager, options)
Parameters:
Name | Type | Description |
---|---|---|
dataManager |
DataManagerInstance.<M> | |
options |
Extends
- StandardViewManager
Members
existingModelsList
filteredInternalModelsList
finalAttachServerSideInfo :Array.<AttachServerSideViewInfo>
Type:
- Array.<AttachServerSideViewInfo>
listDataPaginator :ListDataPaginatorInstance.<M, G_S>
Type:
- ListDataPaginatorInstance.<M, G_S>
listDataPaginator :ListDataPaginatorInstance.<M, G_S>
Type:
- ListDataPaginatorInstance.<M, G_S>
overrideObserverViewPort :Element
Type:
- Element
Methods
autoPopulateViewsFromExistingOrServerSide()
This:
- ListViewManagerInstance
dataLength()
detachViewNodeFromRootParent()
The implementation below is for standard only
getIntersectionObserverViewPort()
getListDataPaginator()
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)
getParentRootViewNode()
getViewNodeAtDataPos()
hookServerSideViews() → {Array.<ServerSideAttachedViewInfo>}
Hooks any server-side views, if server side
Returns:
- Type
- Array.<ServerSideAttachedViewInfo>
onCommit()
registerViewDataHooks()
runRootAndViewNodeBuild(mutation, data, modelId)
Parameters:
Name | Type | Description |
---|---|---|
mutation |
DataManagerMutations | |
data |
Partial.<ValueTypeOfArrayOnly.<M, G_S>> | |
modelId |
string |
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 |
setUpPaginationIntersector(mutation, modelId, stopPagination)
Parameters:
Name | Type | Description |
---|---|---|
mutation |
DataManagerMutations | |
modelId |
string | |
stopPagination |
boolean |
setUpPaginator()
spawnAttachedModels()
TODO: Spawn children only if we have a view node (so not a temp)
For temp, spawn on updateAttachedModels
updatePaginationIntersectorOnDelete(deletedNode)
Parameters:
Name | Type | Description |
---|---|---|
deletedNode |
Element |
validateSelfAsChild()
Allows self to be child. Else, throws error