AssignmentGrid
This grid visualizes and lets users edit assignments of an event. Used by the AssignmentField. This grid shows one column showing the resource name, and one showing the units assigned. You can add additional columns by providing a columns array in your grid config.
Assignment grid
//<code-header>
fiddle.title = 'Assignment grid';
//</code-header>
const project = new ProjectModel({
startDate : new Date(2020, 0, 1),
events : [
{
id : 1,
name : 'Write docs',
expanded : true,
children : [
{ id : 2, name : 'Proof-read docs', startDate : '2020-01-02', endDate : '2020-01-05', effort : 0 },
{ id : 3, name : 'Release docs', startDate : '2020-01-09', endDate : '2020-01-10', effort : 0 }
]
}
],
resources : [
{ id : 1, name : 'John Johnson' },
{ id : 2, name : 'Janet Janetson' },
{ id : 3, name : 'Kermit the Frog' },
{ id : 4, name : 'Kermit the Frog Jr.' }
],
assignments : [
{ id : 1, resource : 1, event : 2, units : 50 },
{ id : 2, resource : 3, event : 2 }
],
dependencies : [
{ id : 1, fromEvent : 2, toEvent : 3 }
]
});
const grid = new AssignmentGrid({
width : 550,
autoHeight : true,
appendTo : targetElement,
projectEvent : project.getEventStore().getById(2)
});Configs
160
Configs
160Common
columnsGridBase
dataGridBase
emptyTextGridBase
featuresGridBase
keyMapGridBase
listenersEvents
preserveScrollGridBase
rowHeightGridBase
storeGridBase
Other
Event model to manipulate assignments of, the task should be part of a task store. Either task or store should be given.
A Column config object for the resource column. You can pass a renderer which
gives you access to the resource record.
A config object for the units column
callOnFunctionsWidget
columnWidget
defaultFocusContainer
drawerPanel
formulaProvidersGridBase
inputFieldAlignContainer
labelPositionContainer
renditionContainer
rtlRTL
spanWidget
stateSettingsGridState
transitionGridBase
Content
bbarPanel
defaultsContainer
footerPanel
headerPanel
itemsContainer
lazyItemsContainer
namedItemsContainer
stripsPanel
tbarPanel
textContentContainer
toolsPanel
trapFocusPanel
CSS
bodyClsPanel
borderContainer
clsWidget
colorWidget
contentElementClsWidget
htmlClsWidget
itemClsContainer
styleWidget
uiPanel
DOM
adoptWidget
appendToWidget
contentWidget
datasetWidget
htmlWidget
idWidget
insertBeforeWidget
insertFirstWidget
tagWidget
Float & align
alignWidget
anchorWidget
centeredWidget
constrainToWidget
draggableWidget
floatingWidget
hideAnimationWidget
maximizeOnMobileWidget
positionedWidget
scrollActionWidget
showAnimationWidget
xWidget
yWidget
Layout
alignSelfWidget
autoHeightGridBase
collapsedPanel
collapsiblePanel
dockWidget
fillLastColumnGridBase
fixedRowHeightGridBase
flexWidget
getRowHeightGridBase
heightWidget
hiddenWidget
hideWhenEmptyContainer
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightGridBase
minWidthWidget
resizeToFitIncludesHeaderGridBase
textAlignWidget
weightWidget
widthWidget
Masking
loadMaskLoadMaskable
loadMaskDefaultsLoadMaskable
loadMaskErrorLoadMaskable
syncMaskLoadMaskable
misc
tabBarItemsContainer
Misc
animateFilterRemovalsGridBase
animateRemovingRowsGridBase
bubbleEventsEvents
cellEllipsisGridBase
columnLinesGridBase
contextMenuTriggerEventGridBase
dataFieldWidget
defaultBindPropertyWidget
defaultRegionGridBase
destroyStoreGridBase
disabledWidget
disableGridRowModelWarningGridBase
elementAttributesWidget
enableStickyGridBase
enableUndoRedoKeysGridElementEvents
fullRowRefreshGridBase
hideFootersGridBase
hideHeadersGridBase
hideHorizontalScrollbarGridBase
hoverClsGridElementEvents
iconPanel
ignoreParentReadOnlyWidget
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
longPressTimeGridElementEvents
maskDefaultsGridBase
maskedWidget
monitorResizeGridBase
ownerWidget
pluginsPluggable
preserveFocusOnDatasetChangeGridBase
preserveScrollOnDatasetChangeGridBase
preventTooltipOnTouchWidget
readOnlyGridBase
refWidget
responsiveLevelsGridResponsive
rippleWidget
rootElementWidget
rowLinesGridBase
showDirtyGridBase
showTooltipWhenDisabledWidget
subGridConfigsGridBase
tabWidget
titlePanel
tooltipWidget
transitionDurationGridBase
State
disableGridColumnIdWarningGridBase
statefulState
statefulEventsState
stateIdState
stateProviderState
Tree
animateTreeNodeToggleGridBase
Properties
139
Properties
139Common
columnsGridBase
dataGridBase
emptyTextGridBase
featuresGridFeatures
preserveScrollGridBase
rowHeightGridBase
storeGridBase
subGridsGridSubGrids
Class hierarchy
Identifies an object as an instance of AssignmentGrid class, or subclass thereof.
Identifies an object as an instance of AssignmentGrid class, or subclass thereof.
isContainerContainer
isDelayableDelayable
isEventsEvents
isGridGrid
isGridBaseGridBase
isGridElementEventsGridElementEvents
isGridFeaturesGridFeatures
isGridResponsiveGridResponsive
isGridSelectionGridSelection
isGridStateGridState
isGridSubGridsGridSubGrids
isKeyMapKeyMap
isLoadMaskableLoadMaskable
isLocalizableLocalizable
isPanelPanel
isPluggablePluggable
isRTLRTL
isStateState
isToolableToolable
isWidgetWidget
CSS
clsWidget
DOM
appendToWidget
contentWidget
contentElementWidget
datasetWidget
elementWidget
focusableElementWidget
focusElementWidget
htmlWidget
idWidget
insertBeforeWidget
insertFirstWidget
overflowElementWidget
styleWidget
Layout
alignSelfWidget
bodyHeightGridBase
collapsedPanel
collapsingPanel
expandingPanel
flexWidget
footerHeightGridBase
headerHeightGridBase
heightWidget
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
scrollableWidget
widthWidget
Misc
callOnFunctionsEvents
cellEllipsisGridBase
cellInfoWidget
columnLinesGridBase
disabledWidget
enableUndoRedoKeysGridElementEvents
hideFootersGridBase
hideHeadersGridBase
hoveredCellGridElementEvents
localeHelperLocalizable
localeManagerLocalizable
longPressTimeGridElementEvents
pluginsPluggable
readOnlyGridBase
refWidget
responsiveLevelGridResponsive
rowLinesGridBase
tabWidget
titlePanel
tooltipWidget
transitionDurationGridBase
Other
columnWidget
firstItemContainer
hasChangesContainer
inputFieldAlignContainer
isSettingValuesContainer
isStatefulState
isValidContainer
itemsContainer
labelPositionContainer
lastItemContainer
renditionContainer
rtlRTL
spanWidget
stateSettingsGridState
toolsPanel
transitionGridBase
valuesContainer
Scrolling
scrollManagerGridBase
Selection
selectedCellGridSelection
selectedCellCSSSelectorGridSelection
selectedCellsGridSelection
selectedRecordGridSelection
selectedRecordsGridSelection
selectedRowsGridSelection
selectionModeGridSelection
State
stateGridState
Tree
animateTreeNodeToggleGridBase
Widget hierarchy
containsFocusWidget
nextSiblingWidget
ownerWidget
parentWidget
previousSiblingWidget
visibleChildCountContainer
widgetMapContainer
Functions
124
Functions
124Configuration
Events
detachListenersBase
Getters
getCellGridBase
getColumnFromElementGridBase
getFooterElementGridBase
getHeaderElementGridBase
getRecordFromElementGridBase
Misc
addPluginsPluggable
animatePropertyBase
callbackBase
downloadTestCaseBase
getPluginPluggable
hasFeatureGridFeatures
hasPluginPluggable
highlightCellsGridBase
maskBodyGridBase
resolveCallbackBase
resumeAnimationsGridBase
runWithTransitionGridBase
suspendAnimationsGridBase
toggleCollapsedPanel
unhighlightCellsGridBase
unmaskBodyGridBase
updateLocalizationLocalizable
Other
addContainer
addListenerEvents
announceAriaLiveWidget
collapsePanelPanel
composeWidget
createOnFrameDelayable
disableWidget
enableWidget
exitFullscreenWidget
expandPanelPanel
focusWidget
getAtContainer
getWidgetByIdContainer
hasListenerEvents
insertContainer
maskWidget
onEvents
processWidgetConfigContainer
recomposeWidget
relayAllEvents
removeContainer
removeAllContainer
removeAllListenersEvents
removeListenerEvents
requestFullscreenWidget
resetValuesContainer
resumeEventsEvents
revertFocusWidget
setValuesContainer
suspendEventsEvents
triggerEvents
unEvents
unmaskWidget
Rendering
refreshColumnGridBase
refreshHeaderGridBase
refreshHeadersGridBase
refreshRowGridBase
refreshRowsGridBase
renderContentsGridBase
renderRowsGridBase
resumeRefreshGridBase
suspendRefreshGridBase
Rows
getRowForGridBase
Scrolling
disableScrollingCloseToEdgesGridBase
enableScrollingCloseToEdgesGridBase
restoreScrollGridBase
scrollCellIntoViewGridBase
scrollColumnIntoViewGridBase
scrollRowIntoViewGridBase
scrollToBottomGridBase
scrollToTopGridBase
storeScrollGridBase
Selection
deselectAllGridSelection
deselectCellGridSelection
deselectCellsGridSelection
deselectRowGridSelection
deselectRowsGridSelection
isCellSelectedGridSelection
isSelectableGridSelection
isSelectedGridSelection
selectAllGridSelection
selectCellGridSelection
selectCellRangeGridSelection
selectCellsGridSelection
selectRangeGridSelection
selectRowGridSelection
selectRowsGridSelection
spliceSelectedRecordsGridSelection
Widget hierarchy
closestWidget
containsWidget
eachAncestorWidget
eachWidgetWidget
ownsWidget
queryWidget
queryAllWidget
upWidget
Events
46
Events
46beforeDestroyEvents
beforeHideWidget
beforeRenderRowGridBase
beforeRenderRowsGridBase
beforeSelectionChangeGridSelection
beforeSetRecordContainer
beforeShowWidget
beforeStateApplyGridState
beforeStateSaveGridState
catchAllEvents
cellClickGridElementEvents
cellContextMenuGridElementEvents
cellDblClickGridElementEvents
cellMouseEnterGridElementEvents
cellMouseLeaveGridElementEvents
cellMouseOutGridElementEvents
cellMouseOverGridElementEvents
collapsePanel
dataChangeGridBase
destroyEvents
dirtyStateChangeContainer
dragSelectingGridSelection
elementCreatedWidget
expandPanel
focusInWidget
focusOutWidget
headerClickGridElementEvents
hideWidget
mouseOutGridElementEvents
mouseOverGridElementEvents
paintWidget
readOnlyWidget
recomposeWidget
renderRowGridBase
renderRowsGridBase
resizeWidget
responsiveGridResponsive
rowMouseEnterGridElementEvents
rowMouseLeaveGridElementEvents
scrollGridBase
selectionChangeGridSelection
selectionModeChangeGridSelection
showWidget
subGridCollapseGridBase
subGridExpandGridBase
toolClickPanel
Event handlers
46
Event handlers
46onBeforeDestroyEvents
onBeforeHideWidget
onBeforeRenderRowGridBase
onBeforeRenderRowsGridBase
onBeforeSelectionChangeGridSelection
onBeforeSetRecordContainer
onBeforeShowWidget
onBeforeStateApplyGridState
onBeforeStateSaveGridState
onCatchAllEvents
onCellClickGridElementEvents
onCellContextMenuGridElementEvents
onCellDblClickGridElementEvents
onCellMouseEnterGridElementEvents
onCellMouseLeaveGridElementEvents
onCellMouseOutGridElementEvents
onCellMouseOverGridElementEvents
onCollapsePanel
onDataChangeGridBase
onDestroyEvents
onDirtyStateChangeContainer
onDragSelectingGridSelection
onElementCreatedWidget
onExpandPanel
onFocusInWidget
onFocusOutWidget
onHeaderClickGridElementEvents
onHideWidget
onMouseOutGridElementEvents
onMouseOverGridElementEvents
onPaintWidget
onReadOnlyWidget
onRecomposeWidget
onRenderRowGridBase
onRenderRowsGridBase
onResizeWidget
onResponsiveGridResponsive
onRowMouseEnterGridElementEvents
onRowMouseLeaveGridElementEvents
onScrollGridBase
onSelectionChangeGridSelection
onSelectionModeChangeGridSelection
onShowWidget
onSubGridCollapseGridBase
onSubGridExpandGridBase
onToolClickPanel
Typedefs
15
Typedefs
15AlignSpecWidget
BryntumListenerConfigEvents
CellWidgetContextWidget
ColorWidget
ColumnStateGridState
DelayableConfigDelayable
EmptyTextDomConfigGridBase
GridScrollOptionsGridBase
GridSelectionModeGridSelection
GridStateInfoGridState
KeyMapConfigKeyMap
PanelHeaderPanel
PreserveScrollOptionsGridBase
ResponsiveLevelConfigGridResponsive
SubGridStateGridState