Skip to content

Commit

Permalink
Custom Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Link2Twenty committed Mar 15, 2016
1 parent ad7c2ed commit 0aabde3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pull-to-action.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
### Example:
You can type your whole script into the action attribute
<pull-to-action
action="location.reload()"
color="red"
container="#container">
</pull-to-action> -> reloads the whole page
</pull-to-action>
But that can get a bit long, so you can call a custom function. Which not only makes you code more readable, but makes it all look a little tidier too.
<pull-to-action
action="someFunc()"
color="#CCC"
container="#someID">
</pull-to-action> -> runs custom fuction
Expand Down

0 comments on commit 0aabde3

Please sign in to comment.