<td>Callback function triggered when an object containing <code>target:'item'</code> in its drag data is dropped in to a timeline item.
</td>
</tr>
<tr>
<tr>
<td>onUpdate</td>
<td>onUpdate</td>
<td>function</td>
<td>function</td>
@ -1823,6 +1831,7 @@ var items = new vis.DataSet([
<ul>
<ul>
<li><code>onAdd(item, callback)</code> Fired when a new item is about to be added. If not implemented, the item will be added with default text contents.</li>
<li><code>onAdd(item, callback)</code> Fired when a new item is about to be added. If not implemented, the item will be added with default text contents.</li>
<li><code>onUpdate(item, callback)</code> 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.</li>
<li><code>onUpdate(item, callback)</code> 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.</li>
<li><code>onDropObjectOnItem(objectData, item)</code> Fired when an object is dropped in to an existing timeline item.</li>
<li><code>onMove(item, callback)</code> Fired when an item has been moved. If not implemented, the move action will be accepted.</li>
<li><code>onMove(item, callback)</code> Fired when an item has been moved. If not implemented, the move action will be accepted.</li>
<li><code>onMoving(item, callback)</code> Fired repeatedly while an item is being moved (dragged). Can be used to adjust the items start, end, and/or group to allowed regions.</li>
<li><code>onMoving(item, callback)</code> Fired repeatedly while an item is being moved (dragged). Can be used to adjust the items start, end, and/or group to allowed regions.</li>
<li><code>onRemove(item, callback)</code> Fired when an item is about to be deleted. If not implemented, the item will be always removed.</li>
<li><code>onRemove(item, callback)</code> Fired when an item is about to be deleted. If not implemented, the item will be always removed.</li>
<p>For this to work, you will have to define your own <code>'dragstart'</code> 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 <code>dataTransfer</code> - notice you can set the item's information as you want this way.</p>
<p>For this to work, you will have to define your own <code>'dragstart'</code> 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 <code>dataTransfer</code> - notice you can set the item's information as you want this way.</p>
<divid="mytimeline"></div>
<divid="mytimeline"></div>
<div>
<h3>Items:</h3>
<ulclass="items">
<lidraggable="true"class="item">
item 1 - box
</li>
<lidraggable="true"class="item">
item 2 - point
</li>
<lidraggable="true"class="item">
item 3 - range
</li>
<lidraggable="true"class="item">
item 3 - range - fixed times - <br>
(start: now, end: now + 10 min)
<divclass='items-panel'>
<divclass='side'>
<h3>Items:</h3>
<ulclass="items">
<lidraggable="true"class="item">
item 1 - box
</li>
<lidraggable="true"class="item">
item 2 - point
</li>
<lidraggable="true"class="item">
item 3 - range
</li>
<lidraggable="true"class="item">
item 3 - range - fixed times - <br>
(start: now, end: now + 10 min)
</li>
</ul>
</div>
<divclass='side'>
<h3>Object with "target:'item'":</h3>
<lidraggable="true"class="object-item">
object with target:'item'
</li>
</li>
</ul>
</div>
</div>
</div>
<script>
<script>
@ -99,7 +130,11 @@
start: new Date(),
start: new Date(),
end: new Date(1000*60*60*24 + (new Date()).valueOf()),
end: new Date(1000*60*60*24 + (new Date()).valueOf()),