Class: CollectionField

Local Navigation

Description

The CollectionField stores a list of MSON Form Components ( aka records, docs, documents) in a list mapa.

Items can be inserted, moved, reordered, etc.

Function: _listenForLoaded

_listenForLoaded()

Function: _listenForUnload

_listenForUnload()

Function: _resetInfiniteLoader

_resetInfiniteLoader()

Function: _updateInfiniteLoader

_updateInfiniteLoader()

Function: _handleStoreChangeFactory

_handleStoreChangeFactory()

Function: _clearAndGetAll

_clearAndGetAll()

Function: _handleShowArchivedFactory

_handleShowArchivedFactory()

Function: _listenForShowArchived

_listenForShowArchived()

Function: _toWhereFromSearchString

_toWhereFromSearchString()

Function: _handleSearchStringFactory

_handleSearchStringFactory()

Function: _listenForSearchString

_listenForSearchString()

Function: _handleOrderFactory

_handleOrderFactory()

Function: _listenForOrder

_listenForOrder()

Function: _handleScrollFactory

_handleScrollFactory()

Function: _listenForScroll

_listenForScroll()

Function: _onRemoveItems

_onRemoveItems()

Function: _onResizeSpacer

_onResizeSpacer()

Function: _getItemsPerPage

_getItemsPerPage()

Function: _createInfiniteLoader

_createInfiniteLoader()

Function: _listenToForm

_listenToForm()

Function: _produceFormAndWaitForLoad

_produceFormAndWaitForLoad()

Function: _produceFormWaitForLoadAndPushForm

_produceFormWaitForLoadAndPushForm()

Function: _addFormSynchronous

_addFormSynchronous()

Function: _addFormAsynchronous

_addFormAsynchronous()

Function: _clearAllFormListeners

_clearAllFormListeners()

Function: _validateValueType

_validateValueType()

Function: removeFormIfExists

removeFormIfExists()

Function: _setForAllForms

_setForAllForms()

Function: _setOnAllForms

_setOnAllForms()

Function: _copyValuesToCurrentForm

_copyValuesToCurrentForm()

Function: _setCurrentForm

_setCurrentForm()

Function: _emitEndEvents

_emitEndEvents()

Function: _setParentDisableSubmit

_setParentDisableSubmit()

Function: _generateForm

_generateForm()

Function: _setMaxColumns

_setMaxColumns()

Function: getSingularLabel

getSingularLabel()

Function: getUniqueItemId

getUniqueItemId()

Function: moveForm

Move the Form to a different location in the CollectionField’s mapa without saving changes to the Form. The schema of the form is determined by the fields array property of the CollectionField

moveForm(Object, Object.sourceIndex, Object.destinationIndex, Object.muteChange)
Arguments:
  • Object (Object) – Move the Form to a different location in the CollectionField’s mapa without

saving changes to the Form. The schema of the form is determined by the fields array property of the CollectionField :param number Object.sourceIndex: The index of where the form was :param number Object.destinationIndex: The index of where it is being moved to :param boolean Object.muteChange: Whether or not we notify the UI :return Object: The changed Form (record).

Function: moveAndSaveForm

Move the Form to a different location in the CollectionField’s mapa then save the changes to the changed Form (a.k.a. record, doc, item). The schema of the form is determined by the fields array property of the CollectionField

moveAndSaveForm(Object, Object.sourceIndex, Object.destinationIndex, Object.muteChange)
Arguments:
  • Object (Object) – Move the Form to a different location in the CollectionField’s mapa then save the changes

to the changed Form (a.k.a. record, doc, item). The schema of the form is determined by the fields array property of the CollectionField :param number Object.sourceIndex: The index of where the form was :param number Object.destinationIndex: The index of where it is being moved to :param boolean Object.muteChange: Whether or not we notify the UI :return Object: The newly saved Form (record).

Member: _className:

Member: SCROLLTHRESHOLD_DEFAULT:

Member: ITEMS_PER_PAGE_DEFAULT:

Member: MAX_BUFFER_PAGES_DEFAULT:

Member: MAX_ITEMS_PER_PAGE:

Member: _window:

Member: _document:

Member: _globals:

Member: _forms:

Member: _infiniteLoader:

Member: _hasTypeError: