Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Turbolinks events and options #14

Closed
olliekav opened this issue Feb 15, 2015 · 3 comments
Closed

Using Turbolinks events and options #14

olliekav opened this issue Feb 15, 2015 · 3 comments
Labels

Comments

@olliekav
Copy link

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 ssorallen added the bug label Feb 15, 2015
@ssorallen
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants