Skip to content

Commit

Permalink
Version 1.2 (#98)
Browse files Browse the repository at this point in the history
* initial clean up

* make things into static classes

* Helpers -> Helper

* add param feature and data actions

* Update package-lock.json

* version bump

* add data-event to readme

* upgrade packages

* audit fix
  • Loading branch information
stuyam authored Jul 10, 2020
1 parent 3d27305 commit 825930f
Show file tree
Hide file tree
Showing 17 changed files with 1,265 additions and 1,577 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["@babel/preset-env"]
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ You can also pass a string or json as the third parameter to send other data wit
opix('event', 'reservation_requested', {someData: 1, otherData: 'cool'})
opix('event', 'reservation_requested', {someData: 1, otherData: 'cool'})
```
You can also add an attribute to any HTML element that will automatically fire the event on click.

```
<button data-opix-event="special-button-click">Some Special Button</button>
```

## Setup and Customize
Openpixel needs to be customized for your needs before you can start using it. Luckily for you it is really easy to do.
Expand Down
Loading

0 comments on commit 825930f

Please sign in to comment.