Browse Source

document manually calling PUSH()

pull/753/head
Kevin Mulvey 10 years ago
parent
commit
0f2021c923
  1. 7
      docs/components.html

7
docs/components.html

@ -1259,6 +1259,13 @@ document
{% highlight js %} {% highlight js %}
// Only needed if you want to fire a callback // Only needed if you want to fire a callback
window.addEventListener('push', myFunction); window.addEventListener('push', myFunction);
{% endhighlight %}
<p class="component-description">Push.js can be triggered manually by using the PUSH(options) function. When passing options, url is reqired, container, transition and timeout are optional. As of version 2.1.0 Ratchet has his own namespace and can also be called with RATCHET.push(options).</p>
{% highlight js %}
PUSH({url: "/signin"});
RATCHET.push({url: "/signin"});
{% endhighlight %} {% endhighlight %}
</article> </article>

Loading…
Cancel
Save