如何创建使用Rails 4的Turbolinks YouTube的风格装载吧? [英] How to create a Youtube style loading bar with Rails 4's Turbolinks?

查看:170
本文介绍了如何创建使用Rails 4的Turbolinks YouTube的风格装载吧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,使一个YouTube式的加载条(在顶部栏上的跨页)与涡轮的联系。

Is there a way to make a Youtube style loading bar (the inter-page across the top bar) with turbo-links.

Turbolinks有不同的回调的负荷,所以你可以做跨了几步一个神经质之一,但有什么办法挂钩到的进展呢?

Turbolinks has loads of different callbacks so you could make a jumpy one across a few steps but is there a way to hook into the progress too?

推荐答案

nprogress护栏可能只是你需要什么。

nprogress-rails is probably just what you need.

这篇关于如何创建使用Rails 4的Turbolinks YouTube的风格装载吧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆