Skip to content

Commit

Permalink
Documentation : update events sestion
Browse files Browse the repository at this point in the history
  • Loading branch information
HaithemMosbahi committed Jun 27, 2017
1 parent 6b05df8 commit 914d174
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,22 @@ The list below describes methods that can be used to manipulate the scheduler :

## Events
The scheduler element dispatches the events below :

| Event | Detail | Description |
| ------------- | ----------------- | ------- | ------------------------------------------------------------------------------------------------------ |
| `day-click` | *Object* | customize the header of the scheduler component. |
| `day-click` | *Object* | Fired when a day on the scheduler is clicked |
| `event-click` | *Object* | Fired when an event on the scheduler is clicke |
| `event-mouse-over` | *Object* | Fired when a mouse over on event is detected |
| `event-mouse-out` | *Object* | Fired a mouse out on event is detected. |
| `event-drag-start` | *Object* | Fired when a drag start on event is detected. |
| `event-drag-end` | *Object* | Fired when a frag end on one event is detected. |
| `drop` | *Object* | Fired when an element is dropped on the scheduler. This is only dispatched when the droppable mode of the scheduler is set to true. |
| `event-drop` | *Object* | Dispatched when an event element has been dropped on the scheduler. |
| `event-resize-start` | *Object* | Fired when resize operation on one event is started. |
| `event-resize-end` | *Object* | Fired when resize operation on one event is ended. |
| `event-resize` | *Object* | Fired when an event has been resized |
| `view-render` | *Object* | Dispatched when the view of the scheduler is rendered. A navigation between days, weeks or months will fire this event |
| `'view-destroy` | *Object* | Dispatched when the view is destroyed. |


## Install
Expand Down
2 changes: 1 addition & 1 deletion scheduler-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@

},
eventDragStop: (event, jsEvent, ui, view) => {
this.dispatchEvent(new CustomEvent('event-drag-start', { detail: { event, jsEvent, ui, view } }));
this.dispatchEvent(new CustomEvent('event-drag-end', { detail: { event, jsEvent, ui, view } }));

},
eventDrop: (event, delta, revertFunc, jsEvent, ui, view) => {
Expand Down

0 comments on commit 914d174

Please sign in to comment.