From 0f2021c923342e7a3644cd14f408ec1ccd494f42 Mon Sep 17 00:00:00 2001 From: Kevin Mulvey Date: Tue, 10 Feb 2015 07:40:14 -0500 Subject: [PATCH] document manually calling PUSH() --- docs/components.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/components.html b/docs/components.html index 8ae2b77..c0f56ff 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1259,6 +1259,13 @@ document {% highlight js %} // Only needed if you want to fire a callback window.addEventListener('push', myFunction); +{% endhighlight %} + +

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).

+ +{% highlight js %} +PUSH({url: "/signin"}); +RATCHET.push({url: "/signin"}); {% endhighlight %}