EventColorColumn

A column that displays Event's eventColor values (built-in color classes or CSS colors) as a colored element similar to the EventColorField. When the user clicks the element, a EventColorPicker lets the user select from a range of colors.

new Scheduler({
   columns : [
      {
         type : 'eventColor',
         text : 'EventColor'
      }
   ]
});

Event color column
//<code-header>
fiddle.title = 'Event color column';
//</code-header>
const scheduler = new Scheduler({
    appendTo : targetElement,

    // makes scheduler as high as it needs to be to fit rows
    autoHeight : true,

    startDate : new Date(2023, 2, 6),
    endDate   : new Date(2023, 2, 13),

    viewPreset : 'dayAndWeek',

    resourceImagePath : 'data/Scheduler/images/transparent-users/',

    columns : [
        { type : 'resourceInfo', field : 'name', text : 'Name', width : 165 },
        { type : 'eventColor', text : 'Color', width : 100 }
    ],

    resources : [
        { id : 1, name : 'Arnold Smith', image : 'arnold.png' },
        { id : 2, name : 'Gloria Rogers', image : 'gloria.png' },
        { id : 3, name : 'Jane Miller', eventColor : 'indigo', image : false }
    ],

    events : [
        { id : 1, resourceId : 1, name : 'Interview', startDate : '2023-03-06', endDate : '2023-03-07' },
        { id : 2, resourceId : 1, name : 'Press meeting', startDate : '2023-03-08', endDate : '2023-03-09' },
        { id : 3, resourceId : 2, name : 'Audition', startDate : '2023-03-07', endDate : '2023-03-09' },
        { id : 4, resourceId : 2, name : 'Script deadline', startDate : '2023-03-11', endDate : '2023-03-11' },
        { id : 5, resourceId : 3, name : 'Rehearsal', startDate : '2023-03-09', endDate : '2023-03-11' }
    ]
});

Configs

84

Common

autoWidthColumn
fieldColumn
fitModeColumn
flexColumn
listenersEvents
maxWidthColumn
textColumn
widthColumn

Accessibility

ariaLabelColumn

Export

Integration

vueColumn

Interaction

collapsedColumn
draggableColumn
editorColumn
groupableColumn
hideableColumn
resizableColumn
sealedColumn
sortableColumn

Layout

alignColumn
hiddenColumn
lockedColumn
minWidthColumn
regionColumn

Menu

Merge cells

mergeableColumn

Misc

localeClassLocalizable
localizableLocalizable
tagsColumn
treeColumn

Other

addNoColorItemColorColumn
colorNameAsValueColorColumn
colorsColorColumn
formulaColumn
pinnedColumn
readOnlyColumn
showColorNameColorColumn

Rendering

cellClsColumn
clsColumn
iconColumn
rendererColumn
tooltipColumn

Summary

sumColumn
summariesColumn

Properties

155

Common

autoWidthColumn
fieldColumn
fitModeColumn
flexColumn
maxWidthColumn
textColumn
widthColumn

Class hierarchy

isEventColorColumn: Boolean= truereadonly
Identifies an object as an instance of EventColorColumn class, or subclass thereof.
isEventColorColumn: Boolean= truereadonlystatic
Identifies an object as an instance of EventColorColumn class, or subclass thereof.
isColorColumnColorColumn
isColumnColumn
isEventsEvents
isLocalizableLocalizable
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Accessibility

ariaLabelColumn

Editing

copyOfModel
isValidModel

Export

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

Integration

vueColumn

Interaction

collapsedColumn
draggableColumn
editorColumn
groupableColumn
hideableColumn
resizableColumn
sealedColumn
sortableColumn

JSON

jsonModel

Layout

alignColumn
hiddenColumn
lockedColumn
minWidthColumn
regionColumn

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Menu

Merge cells

mergeableColumn

Misc

localeHelperLocalizable
localeManagerLocalizable
stmModelStm
tagsColumn
treeColumn

Other

$namestaticModel
addNoColorItemColorColumn
colorNameAsValueColorColumn
colorsColorColumn
defaultsColumn
elementColumn
formulaColumn
gridColumn
pinnedColumn
readOnlyColumn
relationsstaticModel
showColorNameColorColumn
subGridColumn
typestaticColumn
visibleColumn

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Rendering

cellClsColumn
clsColumn
iconColumn
rendererColumn
tooltipColumn

Summary

sumColumn
summariesColumn

Functions

77

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase
optionalLstaticLocalizable

Other

hideColumn
LstaticLocalizable
onEvents
relayAllEvents
showColumn
toggleColumn
triggerEvents
unEvents

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Events

5

Event handlers

5

Typedefs

2

CSS variables

5

Inherited