TaskStore

Store that holds the tasks of a TaskBoard. By default configured to use TaskModel for its records.

Loaded and handled as a part of a project. For example using inline data:

const taskBoard = new TaskBoard({
    project : {
        // Data to load into the TaskStore
        tasks : [
            { id : 1, name : 'Some task', status : 'todo', prio : 'low' }
        ]
    }
}

When loaded using the CrudManager functionality of the project, it is populated from the 'tasks' property in the response:

const taskBoard = new TaskBoard({
    project : {
        transport : {
            load : {
                url : 'load.php'
            }
        },

        autoLoad : true
    }
}

Expected response format to populate the TaskStore:

{
    "success"     : true,
    "tasks"       : {
        "rows" : [
            {
                "id"     : 1,
                "name"   : "Important task",
                "status" : "todo",
                "prio"   : "high"
            },
            ...
        ]
    }
}

Filters applied to the master TaskStore are not by default applied to the column stores (chained stores created for each column). To propagate filters from master store to the column stores, configure the TaskBoard with chainFilters : true. See chainFilters for more details.

Configs

82

Common

Class used to represent records, defaults to TaskModel

removeUnassignedEvent: Boolean= false

Configure with true to also remove the event when removing the last assignment from the linked AssignmentStore.

Defaults to false for TaskBoard since it is unexpected that a tasks disappears when unassigning the last resource from it.

sorters: Sorter[] | String[]

Initial sorters, format is [{ field: 'name', ascending: false }, ...].

By default the TaskStore is sorted by weight, tasks with higher weights are displayed further down. When useSparseIndex is enabled, weight is not used, but sparseIndex takes precedence.

autoCommitStoreCRUD
autoLoadAjaxStore
dataStore
fieldsStore
groupersStoreGroup
idStore
listenersEvents
singleAssignmentEventStoreMixin

Advanced

stmStoreStm
storageStore
useLocaleSortStoreSort

Chained store

chainedFieldsStoreChained
chainedFilterFnStoreChained
chainFiltersStoreChained
dontRelayToMasterStoreChained
doRelayToMasterStoreChained
ignoreLinkRecordsStoreChained
masterStoreStoreChained
syncOrderStoreChained
syncSortStoreChained

CRUD

createUrlAjaxStore
deleteUrlAjaxStore
readUrlAjaxStore
updateUrlAjaxStore

Filtering

filtersStoreFilter
remoteFilterStoreFilter

Misc

Other

lazyLoadAjaxStore
useSparseIndexStoreSparseIndex

Paging

pageParamNameStorePaging
pageSizeStorePaging
remotePagingStorePaging

Records

Remote

fetchOptionsAjaxStore
filterParamNameStoreFilter
headersAjaxStore
httpMethodsAjaxStore
paramsAjaxStore
paramsInBodyAjaxStore
restfulFilterAjaxStore

Sorting

remoteSortStoreSort
sortParamNameStoreSort

Tree

treeStore

Properties

79

Common

idStore

Class hierarchy

isTaskStore: Boolean= truereadonly
Identifies an object as an instance of TaskStore class, or subclass thereof.
isTaskStore: Boolean= truereadonlystatic
Identifies an object as an instance of TaskStore class, or subclass thereof.
isAjaxStoreAjaxStore
isEventsEvents
isEventStoreEventStore
isEventStoreMixinEventStoreMixin
isGetEventsMixinGetEventsMixin
isPartOfProjectPartOfProject
isRecurringEventsMixinRecurringEventsMixin
isStoreStore
isStoreChainedStoreChained
isStoreChangesStoreChanges
isStoreCRUDStoreCRUD
isStoreFilterStoreFilter
isStoreGroupStoreGroup
isStorePagingStorePaging
isStoreRelationStoreRelation
isStoreSearchStoreSearch
isStoreSortStoreSort
isStoreSparseIndexStoreSparseIndex
isStoreStateStoreState
isStoreStmStoreStm
isStoreSumStoreSum
isStoreSyncStoreSync
isStoreTreeStoreTree

Advanced

isChainedStoreChained
StopBranchstaticStoreTree

CRUD

createUrlAjaxStore
deleteUrlAjaxStore
isCommittingAjaxStore
isLoadingAjaxStore
readUrlAjaxStore
updateUrlAjaxStore

Filtering

Lifecycle

configBase

Misc

Models & Stores

assignmentStorePartOfProject
dependencyStorePartOfProject
eventStorePartOfProject
projectPartOfProject
resourceStorePartOfProject

Other

currentPageStorePaging
jsonStore
lazyLoadAjaxStore
storesstaticStore

Paging

isPagedStorePaging
lastPageStorePaging
pageSizeStorePaging

Records

autoCommitStoreCRUD
changesStoreCRUD
countStore
dataStore
firstStore
hasChangesStoreCRUD
lastStore
recordsStore

Remote

paramsAjaxStore

Sort, group & filter

filtersStoreFilter
groupersStoreGroup
isFilteredStoreFilter
isGroupedStoreGroup
isSortedStoreSort
sortersStoreSort

Tree

isTreeStoreTree
leavesStoreTree

Functions

122

Assignment

assignEventToResourceEventStoreMixin
getAssignmentsForEventEventStoreMixin

Chained store

chainStoreChained
chainTreeStoreChained
fillFromMasterStoreChained

Configuration

applyDefaultsstaticBase

CRUD

addEventStoreMixin
addAsyncEventStoreMixin
appendEventStoreMixin
applyChangesetStoreChanges
commitAjaxStore
insertStoreCRUD
loadAjaxStore
loadChildrenAjaxStore
loadDataAsyncEventStoreMixin
loadPageAjaxStore
moveStoreCRUD
nextPageStorePaging
previousPageStorePaging
removeStoreCRUD
removeAllStoreCRUD
revertChangesStoreCRUD

Events

forEachScheduledEventEventStoreMixin
getEventCountsEventStoreMixin
getEventsGetEventsMixin
getTotalTimeSpanEventStoreMixin
isEventPersistableEventStoreMixin

Iteration

everyStore
flatMapStore
forEachStore
mapStore
reduceStore

Lifecycle

destroystaticBase

Misc

initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase

Other

getStorestaticStore
onEvents
relayAllEvents
toJSONStore
triggerEvents
unEvents

Records

getAtStore
getByIdStore
indexOfStore

Recurrence

getRecurringEventsRecurringEventsMixin

Resource

getEventsForResourceEventStoreMixin
getResourcesForEventEventStoreMixin
isDateRangeAvailableGetEventsMixin

Search

findStoreSearch
findByFieldStoreSearch
findRecordStoreSearch
queryStoreSearch
searchStoreSearch
someStoreSearch

Sort, group & filter

addFilterStoreFilter
addSorterStoreSort
clearFiltersStoreFilter
clearGroupersStoreGroup
clearSortersStoreSort
filterStoreFilter
filterByStoreFilter
getGroupRecordsStoreGroup
getGroupTitlesStoreGroup
groupStoreGroup
isRecordInGroupStoreGroup
removeFilterStoreFilter
removeSorterStoreSort
setGroupersStoreGroup
sortStoreSort

Sum

averageStoreSum
groupSumStoreSum
maxStoreSum
minStoreSum
sumStoreSum

Traverse

getNextStore
getPrevStore

Tree

getChildrenStoreTree
indentStoreTree
outdentStoreTree

Values

Events

46
addStoreCRUD
beforeAddStoreCRUD
beforeCommitStoreCRUD
beforeFilterStoreFilter
beforeIndentStoreTree
beforeLoadAjaxStore
beforeLoadPageStorePaging
beforeOutdentStoreTree
beforeRemoveStoreCRUD
beforeSortStoreSort
catchAllEvents
changeStore
commitStoreCRUD
commitAddedAjaxStore
commitRemovedAjaxStore
destroyEvents
exceptionAjaxStore
filterStoreFilter
groupStoreGroup
indentStoreTree
loadAjaxStore
loadChildrenAjaxStore
loadDateRangeGetEventsMixin
loadPageStorePaging
loadPageStartAjaxStore
loadStartAjaxStore
moveStore
outdentStoreTree
refreshStore
removeStoreCRUD
removeAllStoreCRUD
sortStoreSort
updateStore

Event handlers

46
onAddStoreCRUD
onBeforeAddStoreCRUD
onBeforeFilterStoreFilter
onBeforeLoadAjaxStore
onBeforeLoadPageStorePaging
onBeforeSortStoreSort
onCommitStoreCRUD
onCommitAddedAjaxStore
onDestroyEvents
onExceptionAjaxStore
onFilterStoreFilter
onGroupStoreGroup
onIndentStoreTree
onLoadAjaxStore
onLoadDateRangeGetEventsMixin
onLoadPageStorePaging
onLoadStartAjaxStore
onMoveStore
onOutdentStoreTree
onRemoveStoreCRUD
onRemoveAllStoreCRUD
onSortStoreSort

Typedefs

9