ssorallen / turbo-react

A JavaScript library that transitions between static HTML pages on navigation; no app server required.
https://turbo-react.herokuapp.com/
Apache License 2.0
274 stars 16 forks source link

Using Turbolinks events and options #14

Closed olliekav closed 9 years ago

olliekav commented 9 years ago

Is this possible, I can't seem to hook into them at the moment? For example I want to use

data-no-turbolink

And the ProgressBar

ssorallen commented 9 years ago

Can you give an example of data-no-turbolink not working for you? I tried it on the demo app and it worked like this:

<p><a class="btn btn-primary" href="/" data-no-turbolink>Re-request this page</a></p>
ssorallen commented 9 years ago

As of 0.6.0, you can enable the progress bar by accessing the Turbolinks global that Reactize exposes: https://github.com/ssorallen/turbo-react#enable-a-progress-bar-to-show-pageload-progress

olliekav commented 9 years ago

That's great, thanks. I think the 'data-no-turbolink' issue is me not binding my JS events properly for Turbolinks, it's for a responsive nav. Investigating that now.