Skip to content

Commit

Permalink
added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Esteves committed Oct 8, 2018
1 parent 49c1ef0 commit 3d7cd73
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,22 @@ Optional
* data-delete-handle - delete button
* data-delete-placeholder - field to check as delete
```

### Custom Events
* Events
* Event name: ```arcticImageAdded```
* Event data: ```input html element```
* Occurs after selecting an image on an Image field (similar to the JS change event on a file input)
* Event name: ```arcticImageRemoved```
* Event data: ```input html element```
* Occurs after removing an image from a Image field

#
Events can be listened with
```
document.addEventListener('eventname', function (e) {
//code to execute
//access the data with
console.log(e.detail)
}, false);
```

0 comments on commit 3d7cd73

Please sign in to comment.