dojox.calendar.StoreMixin
Object » dojo.Stateful » dojox.calendar.StoreMixin
Method Summary
- _computeVisibleItems(renderData) Computes the data items that are in the displayed interval.
- _initItems(items)
- _refreshItemsRendering(renderData)
- _setStoreAttr(value)
- _updateItems(object, previousIndex, newIndex)
- cssClassFunc() Optional function that returns a css class name to apply to item renderers that are displaying the specified item in parameter.
- decodeDate() An optional function to transform store date into Date objects. Default is null.
- encodeDate() An optional function to transform Date objects into store date. Default is null.
- itemToRenderItem(item, store) Creates the render item based on the dojo.store item. It must be of the form: { id: Object, startTime: Date, endTime: Date, summary: String } By default it is building an object using the store id, the summaryAttr, startTimeAttr and endTimeAttr properties as well as decodeDate property if not null. Other fields or way to query fields can be used if needed.
- renderItemToItem(renderItem, store) Create a store item based on the render item. It must be of the form: { id: Object startTime: Date, endTime: Date, summary: String } By default it is building an object using the summaryAttr, startTimeAttr and endTimeAttr properties and decodeDate property if not null.
Methods
Overrides dojo.Stateful
Computes the data items that are in the displayed interval.
Parameter | Type | Description |
---|---|---|
renderData | Object | The renderData that contains the start and end time of the displayed interval. |
Overrides dojo.Stateful
Optional function that returns a css class name to apply to item renderers that are displaying the specified item in parameter.
Overrides dojo.Stateful
An optional function to transform store date into Date objects. Default is null.
Overrides dojo.Stateful
An optional function to transform Date objects into store date. Default is null.
Overrides dojo.Stateful
Object
Creates the render item based on the dojo.store item. It must be of the form:
{
id: Object,
startTime: Date,
endTime: Date,
summary: String
}
By default it is building an object using the store id, the summaryAttr,
startTimeAttr and endTimeAttr properties as well as decodeDate property if not null.
Other fields or way to query fields can be used if needed.
Parameter | Type | Description |
---|---|---|
item | Object | The store item. |
store | dojo.store.api.Store | The store. |
Overrides dojo.Stateful
Object
Create a store item based on the render item. It must be of the form:
{
id: Object
startTime: Date,
endTime: Date,
summary: String
}
By default it is building an object using the summaryAttr, startTimeAttr and endTimeAttr properties
and decodeDate property if not null.
Parameter | Type | Description |
---|---|---|
renderItem | Object | The render item. |
store | dojo.store.api.Store | The store. |