Edit this topic

Date part handler

: shell

: core-parts

: date-part-handler

: /modules/core/parts/services/date-part-handler.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/parts/services/date-part-handler.js


The date part handler creates date shapes.

Kind: global variable

DatePartHandler.handle(context, done)

Adds a date shape to context.shapes for the date part on the context.

Kind: static method of DatePartHandler

Param Type Description
context object The context object.
context.part object The date part to handle.
context.partName string The name of the part.
context.displayType string The display type.
context.item object A reference to the content item.
context.shapes Array The shapes array to which new shapes must be pushed.
context.scope object The scope.
done function The callback.