dojox.calendar.MonthColumnView
Object » dijit._WidgetBase » dojox.calendar.ViewBase » dojox.calendar.MonthColumnView
dojo.require("dojox.calendar.MonthColumnView");
Defined in dojox.calendar/MonthColumnView.js
The month column view is a calendar view used to display a month per column where each cell of the column is a day.
dojox.calendar.ViewBase
Property Summary
Method Summary
- __fixEvt(e)
- _autoScroll(gx, gy, orientation)
- _buildColumnHeader(renderData, oldRenderData) Creates incrementally the HTML structure of the column header and configures its content.
- _buildGrid(renderData, oldRenderData) Creates incrementally the HTML structure of the grid and configures its content.
- _buildItemContainer(renderData, oldRenderData) Creates the HTML structure of the item container and configures its content.
- _cleanupColumnHeader()
- _columnHeaderClick(e)
- _computeItemEditingTimes(item, editKind, rendererKind, times, eventSource)
- _configureScrollBar(renderData)
- _createItemEditEvent()
- _createRenderData() Creates the object that contains all the data needed to render this widget.
- _createRenderer(item, kind, rendererClass, cssClass) Creates an item renderer of the specified kind. A renderer is an object with the "container" and "instance" properties.
- _createRendering(renderData, oldRenderData)
- _createStructure(rd) Creates the HTML structure (grid, place holders, headers, etc)
- _dateToYCoordinate(renderData, d, start)
- _defaultItemToRendererKindFunc(item)
- _destroyRenderer(renderer) Destroys the item renderer.
- _destroyRenderersByKind(kind)
- _dispatchCalendarEvt(e, name)
- _doEndItemEditing(obj, eventSource)
- _endItemEditing(eventSource, canceled) Leaves the item editing mode. item: Object The item that was edited.
- _endItemEditingGesture(eventSource, e)
- _ensureItemInView(item) If needed, moves the item to be entirely in view.
- _findRenderItem(id, list)
- _formatColumnHeaderLabel(d) Computes the column header label for the specified date.
- _formatGridCellLabel(d, row, col) Computes the column header label for the specified date. By default a formatter is used, optionally the <code>gridCellDatePattern</code> property can be used to set a custom date pattern to the formatter.
- _getCellAt(rowIndex, columnIndex, rtl)
- _getFormatItemTimeFuncAttr()
- _getScrollPositionAttr()
- _getSelectedItemAttr(value)
- _getSelectedItemsAttr()
- _getSelectionModeAttr(value)
- _getStartEndRenderers(item) Returns an array that contains the first and last renderers of an item that are currently displayed. They could be the same renderer if only one renderer is used.
- _getStoreAttr()
- _isItemInView(item) Computes whether the specified item is entirely in the view or not.
- _itemToRendererKind(item) returns String Associates a kind of renderer with a data item.
- _layoutBgItems(renderData, col, startTime, endTime, items)
- _layoutInterval(renderData, index, start, end, items) For each item in the items list: retrieve a renderer, compute its location and size and add it to the DOM.
- _layoutPass1(layoutItem, lanes) First pass of the overlap layout. Find a lane where the item can be placed or create a new one.
- _layoutRenderers(renderData) Renders the data items. This method will call the _layoutInterval() method.
- _layoutVerticalItems(renderData, index, startTime, endTime, items)
- _mouseWheelScrollHander(e)
- _moveOrResizeItemGesture(dates, eventSource, e) Moves or resizes an item.
- _onColumnHeaderClick(e)
- _onGridClick(e)
- _onGridDoubleClick(e)
- _onGridMouseDown(e)
- _onGridMouseUp(e)
- _onGridTouchEnd(e)
- _onGridTouchMove(e)
- _onGridTouchStart(e)
- _onItemClick(e)
- _onItemDoubleClick(e)
- _onItemEditBegin(e)
- _onItemEditBeginGesture(e)
- _onItemEditEnd(e)
- _onItemEditEndGesture(e)
- _onItemEditMoveGesture(e)
- _onItemEditResizeGesture(e)
- _onRenderersLayoutDone(view)
- _onScrollTimer_tick(pos)
- _overlapLayoutPass2(lanes) Second pass of the overlap layout (optional). Compute the extent of each layout item.
- _recycleItemRenderers(remove)
- _recycleRenderer(renderer, remove) Recycles the item renderer to be reused in the future.
- _refreshItemsRendering()
- _scrollBar_onScroll(value)
- _setColumnCountAttr(value)
- _setEditingProperties(props) Registers the editing properties used by the editing functions. This method should only be called by editing interaction mixins like Mouse, Keyboard and Touch.
- _setHoveredItem(item, renderer)
- _setItemsAttr(value)
- _setScrollImpl(v)
- _setScrollPosition(date, maxDuration, easing)
- _setScrollPositionAttr(value)
- _setSelectedItemAttr(value)
- _setSelectedItemsAttr(value)
- _setSelectionModeAttr(value)
- _setStartDateAttr(value)
- _setText(node, text, allowHTML) Creates a text node under the parent node after having removed children nodes if any.
- _setVerticalRendererAttr(value)
- _sortItemsFunction(a, b)
- _startAutoScroll(step)
- _startItemEditing(item, eventSource) Configures the component, renderers to start one (mouse) of several (touch, keyboard) editing gestures.
- _startItemEditingGesture(dates, editKind, eventSource, e) Starts the editing gesture. date: Date[] The reference dates (at least one).
- _stopAutoScroll()
- _updateEditingCapabilities(item, renderer)
- _validateProperties() Validates the widget properties before the rendering pass. tags protected
- _waDojoxAddIssue(d, unit, steps) Workaround an issue of dojox.date.XXXXX.date.add() function that does not support the subtraction of time correctly (normalization issues).
- applyRendererZIndex(item, renderer, hovered, selected, edited, focused) Applies the z-index to the renderer based on the state of the item. This methods is setting a z-index of 20 is the item is selected or edited and the current lane value computed by the overlap layout (i.e. the renderers are stacked according to their lane).
- buildRendering()
- computeOverlapping(layoutItems, func) Computes the overlap layout of a list of items. A lane and extent properties are added to each layout item.
- computeProjectionOnDate(renderData, refDate, date, max) Computes the time to pixel projection in a day.
- computeRangeOverlap(renderData, start1, end1, start2, end2, includeLimits) Computes the overlap time range of the time ranges. Returns a vector of Date with at index 0 the start time and at index 1 the end time.
- constructor(args)
- destroy(preserveDom)
- ensureMinimalDuration(renderData, item, unit, steps, editKind) During the resize editing gesture, ensures that the item has the specified minimal duration.
- ensureVisibility(start, end, visibilityTarget, margin, duration) Scrolls the view if the [start, end] time range is not visible or only partially visible.
- floorDate(date, unit, steps, reuse) floors the date to the unit.
- floorToDay(date, reuse) Floors the specified date to the start of day.
- floorToMonth(date, reuse) Floors the specified date to the start of the date's month.
- getIdentity(item)
- getRenderers(item) Returns the renderers that are currently used to displayed the speficied item. Returns an array of objects that contains two properties: container: The DOM node that contains the renderer. renderer: The dojox.calendar._RendererMixin instance. Do not keep references on the renderers are they are recycled and reused for other items.
- getTime(e, x, y, touchIndex) Returns the time displayed at the specified point by this component.
- getWeekNumberLabel(date) Returns the week number string from dojo.date.locale.format() method as dojox.date.XXXX calendar are not supporting the "w" pattern.
- invalidateLayout() trigger a re-layout of the renderers.
- isAscendantHasClass(node, ancestor, className) Determines if a node has an ascendant node that has the css class specified.
- isItemBeingEdited(item) Returns whether an item is being edited or not.
- isItemEditable(item, rendererKind) Computes whether particular item renderer can be edited or not. By default it is using the editable property value.
- isItemFocused(item) Returns whether the specified item is focused or not.
- isItemHovered(item) Returns whether the specified item is hovered or not.
- isItemMoveEnabled(item, rendererKind) Computes whether particular item renderer can be moved. By default it is using the moveEnabled property value.
- isItemResizeEnabled(item, rendererKind) Computes whether particular item renderer can be resized. By default it is using the resizedEnabled property value.
- isItemSelected(item)
- isOverlapping(renderData, start1, end1, start2, end2, includeLimits) Computes if the first time range defined by the start1 and end1 parameters is overlapping the second time range defined by the start2 and end2 parameters.
- isSameDay(date1, date2) Tests if the specified dates are in the same day.
- isStartOfDay(d) Tests if the specified date represents the starts of day.
- isToday(date) Returns whether the specified date is in the current day.
- isWeekEnd(date) Determines whether the specified date is a week-end. This method is using dojo.date.locale.isWeekend() method as dojox.date.XXXX calendars are not supporting this method.
- itemToRendererKindFunc() An optional function to associate a kind of renderer ("horizontal", "label" or null) with the specified item. By default, if an item is lasting more that 24 hours an horizontal item is used, otherwise a label is used.
- layoutPriorityFunction() An optional comparison function use to determine the order the item will be laid out The function is used to sort an array and must, as any sorting function, take two items as argument and must return an integer whose sign define order between arguments. By default, a comparison by start time then end time is used.
- newDate(obj) Creates a new Date object.
- postCreate()
- refreshRendering()
- resize()
- scrollView(dir) Scrolls the view to the specified direction of one time slot duration.
- selectFromEvent(e, item, renderer, dispatch)
- setItemSelected(item, value)
- styleColumnHeaderCell(node, date, renderData) Styles the CSS classes to the node that displays a column header cell. By default this method is does nothing and is designed to be overridden.
- styleGridCell(node, date, col, row, renderData) Styles the CSS classes to the node that displays a column. By default this method is setting the "dojoxCalendarToday" class name if the date displayed is the current date or "dojoxCalendarWeekend" if the date represents a weekend.
- updateRenderers(obj, stateOnly) Updates all the renderers that represents the specified item(s).
Event Summary
- onColumnHeaderClick(e) Event dispatched when a column header cell is dispatched.
- onGridClick(e) Event dispatched when the grid has been clicked.
- onGridDoubleClick(e) Event dispatched when the grid has been double-clicked.
- onItemClick(e) Event dispatched when an item renderer has been clicked.
- onItemDoubleClick(e) Event dispatched when an item renderer has been double-clicked.
- onItemEditBegin(e) Event dispatched when the item is entering the editing mode.
- onItemEditBeginGesture(e) Event dispatched when an editing gesture is beginning.
- onItemEditEnd(e) Event dispatched when the item is leaving the editing mode.
- onItemEditEndGesture(e) Event dispatched at the end of an editing gesture.
- onItemEditMoveGesture(e) Event dispatched during a move editing gesture.
- onItemEditResizeGesture(e) Event dispatched during a resize editing gesture.
- onRendererCreated(renderer) Event dispatched when an item renderer has been created.
- onRendererDestroyed(renderer) Event dispatched when an item renderer is destroyed.
- onRendererRecycled(renderer) Event dispatched when an item renderer has been recycled.
- onRendererReused(renderer) Event dispatched when an item renderer that was recycled is reused.
- onRenderersLayoutDone(view) Event triggered when item renderers layout has been done.
Attached Objects
Properties
Methods
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
gx | ||
gy | ||
orientation |
Creates incrementally the HTML structure of the column header and configures its content.
Parameter | Type | Description |
---|---|---|
renderData | The | render data to display. |
oldRenderData | The | previously render data displayed, if any. |
Creates incrementally the HTML structure of the grid and configures its content.
Parameter | Type | Description |
---|---|---|
renderData | The | render data to display. |
oldRenderData | The | previously render data displayed, if any. |
Creates the HTML structure of the item container and configures its content.
Parameter | Type | Description |
---|---|---|
renderData | The | render data to display. |
oldRenderData | The | previously render data displayed, if any. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
item | ||
editKind | ||
rendererKind | ||
times | ||
eventSource |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Creates the object that contains all the data needed to render this widget.
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Object
tags
protected
Creates an item renderer of the specified kind. A renderer is an object with the "container" and "instance" properties.
Parameter | Type | Description |
---|---|---|
item | Object | The data item. |
kind | String | The kind of renderer. |
rendererClass | Object | The class to instanciate to create the renderer. |
cssClass |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Creates the HTML structure (grid, place holders, headers, etc)
Parameter | Type | Description |
---|---|---|
rd | Object |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
item |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Destroys the item renderer.
Parameter | Type | Description |
---|---|---|
renderer | dojox.calendar._RendererMixin | The item renderer to destroy. tags protected |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
kind |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
e | ||
name |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
obj | ||
eventSource |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Leaves the item editing mode.
item: Object
The item that was edited.
Parameter | Type | Description |
---|---|---|
eventSource | String | "mouse", "keyboard", "touch" |
canceled | Boolean |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
eventSource | String | |
e | Event |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Whether the item has been moved to be in view or not.
If needed, moves the item to be entirely in view.
Parameter | Type | Description |
---|---|---|
item | Object | The item to test |
Computes the column header label for the specified date.
Parameter | Type | Description |
---|---|---|
d | Date | The date to format |
Computes the column header label for the specified date.
By default a formatter is used, optionally the <code>gridCellDatePattern</code>
property can be used to set a custom date pattern to the formatter.
Parameter | Type | Description |
---|---|---|
d | Date | The date to format. |
row | Integer | The row that displays the current date. |
col | Integer | The column that displays the current date. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
value |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
value |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Returns an array that contains the first and last renderers of an item
that are currently displayed. They could be the same renderer if only one renderer is used.
Parameter | Type | Description |
---|---|---|
item | Object | The render item. retunrs: Object[] |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Computes whether the specified item is entirely in the view or not.
Parameter | Type | Description |
---|---|---|
item | Object | The item to test |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Returns String: String
tags
protected
Associates a kind of renderer with a data item.
Parameter | Type | Description |
---|---|---|
item | Object | The data item. |
Parameter | Type | Description |
---|---|---|
renderData | Object | |
col | Integer | |
startTime | Date | |
endTime | Date | |
items | Object[] |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
For each item in the items list: retrieve a renderer, compute its location and size and add it to the DOM.
Parameter | Type | Description |
---|---|---|
renderData | Object | |
index | Integer | |
start | Date | |
end | Date | |
items | Object[] |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
First pass of the overlap layout. Find a lane where the item can be placed or create a new one.
Parameter | Type | Description |
---|---|---|
layoutItem | Object | An object that contains a start and end properties at least. |
lanes | The | array of lanes. tags private |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Renders the data items. This method will call the _layoutInterval() method.
Parameter | Type | Description |
---|---|---|
renderData |
Parameter | Type | Description |
---|---|---|
renderData | Object | |
index | Integer | |
startTime | Date | |
endTime | Date | |
items | Object[] |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Moves or resizes an item.
Parameter | Type | Description |
---|---|---|
dates | Date[] | The reference dates. editKind: String Kind of edit: "resizeStart", "resizeEnd", "resizeBoth" or "move". |
eventSource | String | "mouse", "keyboard", "touch" |
e | Event | The event at the origin of the editing gesture. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
view |
Second pass of the overlap layout (optional). Compute the extent of each layout item.
Parameter | Type | Description |
---|---|---|
lanes | The | array of lanes. tags private |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
remove |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Recycles the item renderer to be reused in the future.
Parameter | Type | Description |
---|---|---|
renderer | dojox.calendar._RendererMixin | The item renderer to recycle. tags protected |
remove |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Registers the editing properties used by the editing functions.
This method should only be called by editing interaction mixins like Mouse, Keyboard and Touch.
Parameter | Type | Description |
---|---|---|
props |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
item | ||
renderer |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
value |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
value |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
value |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Creates a text node under the parent node after having removed children nodes if any.
Parameter | Type | Description |
---|---|---|
node | Node | The node that will contain the text node. |
text | String | The text to set to the text node. |
allowHTML |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Configures the component, renderers to start one (mouse) of several (touch, keyboard) editing gestures.
Parameter | Type | Description |
---|---|---|
item | Object | The item that will be edited. |
eventSource | String | "mouse", "keyboard", "touch" |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Starts the editing gesture.
date: Date[]
The reference dates (at least one).
Parameter | Type | Description |
---|---|---|
dates | ||
editKind | String | Kind of edit: "resizeBoth", "resizeStart", "resizeEnd" or "move". |
eventSource | String | "mouse", "keyboard", "touch" |
e | Event | The event at the origin of the editing gesture. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
item | ||
renderer |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Validates the widget properties before the rendering pass.
tags
protected
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Workaround an issue of dojox.date.XXXXX.date.add() function
that does not support the subtraction of time correctly (normalization issues).
Parameter | Type | Description |
---|---|---|
d | ||
unit | ||
steps |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Applies the z-index to the renderer based on the state of the item.
This methods is setting a z-index of 20 is the item is selected or edited
and the current lane value computed by the overlap layout (i.e. the renderers
are stacked according to their lane).
Parameter | Type | Description |
---|---|---|
item | Object | The render item. |
renderer | Object | A renderer associated with the render item. |
hovered | Boolean | Whether the item is hovered or not. |
selected | Boolean | Whether the item is selected or not. |
edited | Boolean | Whether the item is being edited not not. |
focused | Boolean | Whether the item is focused not not. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Object
Computes the overlap layout of a list of items. A lane and extent properties are added to each layout item.
Parameter | Type | Description |
---|---|---|
layoutItems | Object[] | List of layout items, each item must have a start and end properties. addedPass: Function Whether computes the extent of each item renderer on free sibling lanes. |
func |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Number
Computes the time to pixel projection in a day.
Parameter | Type | Description |
---|---|---|
renderData | Object | The render data. |
refDate | Date | The reference date that defines the destination date. |
date | Date | The date to project. |
max | Integer | The size in pixels of the representation of a day. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Date[]
Computes the overlap time range of the time ranges.
Returns a vector of Date with at index 0 the start time and at index 1 the end time.
Parameter | Type | Description |
---|---|---|
renderData | Object. | The render data. |
start1 | Date | The start time of the first time range. |
end1 | Date | The end time of the first time range. |
start2 | Date | The start time of the second time range. |
end2 | Date | The end time of the second time range. |
includeLimits | Boolean | Whether include the end time or not. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
During the resize editing gesture, ensures that the item has the specified minimal duration.
Parameter | Type | Description |
---|---|---|
renderData | Object | The render data. |
item | Object | The edited item. |
unit | String | The unit used to define the minimal duration. |
steps | Integer | The number of time units. |
editKind | String | The edit kind: "resizeStart" or "resizeEnd". |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Scrolls the view if the [start, end] time range is not visible or only partially visible.
Parameter | Type | Description |
---|---|---|
start | Date | Start time of the range of interest. |
end | Date | End time of the range of interest. |
visibilityTarget | String | The end(s) of the time range to make visible. Valid values are: "start", "end", "both". |
margin | int | Margin in minutes around the time range. |
duration | Number | Optional, the maximum duration of the scroll animation. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Date
floors the date to the unit.
Parameter | Type | Description |
---|---|---|
date | Date | The date/time to floor. |
unit | String | The unit. Valid values are "minute", "hour", "day". |
steps | Integer | For "day" only 1 is valid. |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Date
Floors the specified date to the start of day.
Parameter | Type | Description |
---|---|---|
date | Date | The date to floor. |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Date
Floors the specified date to the start of the date's month.
Parameter | Type | Description |
---|---|---|
date | Date | The date to floor. |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Object[]
Returns the renderers that are currently used to displayed the speficied item.
Returns an array of objects that contains two properties:
container: The DOM node that contains the renderer.
renderer: The dojox.calendar._RendererMixin instance.
Do not keep references on the renderers are they are recycled and reused for other items.
Parameter | Type | Description |
---|---|---|
item | Object | The data or render item. |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Date
Returns the time displayed at the specified point by this component.
Parameter | Type | Description |
---|---|---|
e | Event | Optional mouse event. |
x | Number | Position along the x-axis with respect to the sheet container used if event is not defined. |
y | Number | Position along the y-axis with respect to the sheet container (scroll included) used if event is not defined. |
touchIndex | Integer | If parameter 'e' is not null and a touch event, the index of the touch to use. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Returns the week number string from dojo.date.locale.format() method as
dojox.date.XXXX calendar are not supporting the "w" pattern.
Parameter | Type | Description |
---|---|---|
date | Date | The date to format. |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
trigger a re-layout of the renderers.
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Determines if a node has an ascendant node that has the css class specified.
Parameter | Type | Description |
---|---|---|
node | Node | The DOM node. |
ancestor | Node | The ancestor node used to limit the search in hierarchy. |
className | String | The css class name. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Returns whether an item is being edited or not.
Parameter | Type | Description |
---|---|---|
item | Object | The item to test. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Computes whether particular item renderer can be edited or not.
By default it is using the editable property value.
Parameter | Type | Description |
---|---|---|
item | Object | The item represented by the renderer. |
rendererKind | String | The kind of renderer. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Returns whether the specified item is focused or not.
Parameter | Type | Description |
---|---|---|
item | Object | The item. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Returns whether the specified item is hovered or not.
Parameter | Type | Description |
---|---|---|
item | Object | The item. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Computes whether particular item renderer can be moved.
By default it is using the moveEnabled property value.
Parameter | Type | Description |
---|---|---|
item | Object | The item represented by the renderer. |
rendererKind | String | The kind of renderer. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Computes whether particular item renderer can be resized.
By default it is using the resizedEnabled property value.
Parameter | Type | Description |
---|---|---|
item | Object | The item represented by the renderer. |
rendererKind | String | The kind of renderer. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Computes if the first time range defined by the start1 and end1 parameters
is overlapping the second time range defined by the start2 and end2 parameters.
Parameter | Type | Description |
---|---|---|
renderData | Object | The render data. |
start1 | Date | The start time of the first time range. |
end1 | Date | The end time of the first time range. |
start2 | Date | The start time of the second time range. |
end2 | Date | The end time of the second time range. |
includeLimits | Boolean | Whether include the end time or not. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Tests if the specified dates are in the same day.
Parameter | Type | Description |
---|---|---|
date1 | Date | The first date. |
date2 | Date | The second date. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Tests if the specified date represents the starts of day.
Parameter | Type | Description |
---|---|---|
d | Date | The date to test. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Boolean
Returns whether the specified date is in the current day.
Parameter | Type | Description |
---|---|---|
date | Date | The date to test. renderData: Object The current renderData |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Determines whether the specified date is a week-end.
This method is using dojo.date.locale.isWeekend() method as
dojox.date.XXXX calendars are not supporting this method.
Parameter | Type | Description |
---|---|---|
date | Date | The date to test. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
An optional function to associate a kind of renderer ("horizontal", "label" or null) with the specified item.
By default, if an item is lasting more that 24 hours an horizontal item is used, otherwise a label is used.
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
An optional comparison function use to determine the order the item will be laid out
The function is used to sort an array and must, as any sorting function, take two items
as argument and must return an integer whose sign define order between arguments.
By default, a comparison by start time then end time is used.
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Date
Creates a new Date object.
Parameter | Type | Description |
---|---|---|
obj | Object | This object can have several values: the time in milliseconds since gregorian epoch. a Date instance |
Overrides dijit._WidgetBase, dojox.calendar.ViewBase
Scrolls the view to the specified direction of one time slot duration.
Parameter | Type | Description |
---|---|---|
dir | Integer | Direction of the scroll. Valid values are -1 and 1. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
e | ||
item | ||
renderer | ||
dispatch |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Parameter | Type | Description |
---|---|---|
item | ||
value |
Styles the CSS classes to the node that displays a column header cell.
By default this method is does nothing and is designed to be overridden.
Parameter | Type | Description |
---|---|---|
node | Node | The DOM node that displays the column in the grid. |
date | Date | The date displayed by this column |
renderData | Object | The render data. |
Styles the CSS classes to the node that displays a column.
By default this method is setting the "dojoxCalendarToday" class name if the
date displayed is the current date or "dojoxCalendarWeekend" if the date represents a weekend.
Parameter | Type | Description |
---|---|---|
node | Node | The DOM node that displays the column in the grid. |
date | Date | The date displayed by this column |
col | ||
row | ||
renderData | Object |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Updates all the renderers that represents the specified item(s).
Parameter | Type | Description |
---|---|---|
obj | Object | A render item or an array of render items. |
stateOnly | Boolean | Whether only the state of the item has changed (selected, edited, edited, focused) or a more global change has occured. |
Events
Event dispatched when a column header cell is dispatched.
Parameter | Type | Description |
---|---|---|
e | Event | The event has the following properties: index: Integer The column index. date: Date The date displayed by the column. triggerEvent: Event The origin event. |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when the grid has been clicked.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when the grid has been double-clicked.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer has been clicked.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer has been double-clicked.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when the item is entering the editing mode.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an editing gesture is beginning.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when the item is leaving the editing mode.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched at the end of an editing gesture.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched during a move editing gesture.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched during a resize editing gesture.
Parameter | Type | Description |
---|---|---|
e |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer has been created.
Parameter | Type | Description |
---|---|---|
renderer |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer is destroyed.
Parameter | Type | Description |
---|---|---|
renderer |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer has been recycled.
Parameter | Type | Description |
---|---|---|
renderer |
Defined by dijit._WidgetBase, dojox.calendar.ViewBase
Event dispatched when an item renderer that was recycled is reused.
Parameter | Type | Description |
---|---|---|
renderer |