diff --git a/docs/timeline/index.html b/docs/timeline/index.html index e76267de..f30ddbe2 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -913,6 +913,14 @@ function (option, path) { +
target:'item'
in its drag data is dropped in to a timeline item.
+ onAdd(item, callback)
Fired when a new item is about to be added. If not implemented, the item will be added with default text contents.onUpdate(item, callback)
Fired when an item is about to be updated. This function typically has to show a dialog where the user change the item. If not implemented, nothing happens.onDropObjectOnItem(objectData, item)
Fired when an object is dropped in to an existing timeline item.onMove(item, callback)
Fired when an item has been moved. If not implemented, the move action will be accepted.onMoving(item, callback)
Fired repeatedly while an item is being moved (dragged). Can be used to adjust the items start, end, and/or group to allowed regions.onRemove(item, callback)
Fired when an item is about to be deleted. If not implemented, the item will be always removed.For this to work, you will have to define your own 'dragstart'
eventListener on each item in your list of items (make sure that any new item added to the list is attached to this eventListener 'dragstart' handler). This 'dragstart' handler must set dataTransfer
- notice you can set the item's information as you want this way.