角JS:实现自定义滚动条 [英] Angular JS: Implementing custom scrollbar

查看:238
本文介绍了角JS:实现自定义滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在世界角度很新。我的工作涉及角JS的应用程序。我一直面临着实现自定义的滚动条的要求。我的应用程序确实有太多的jQuery,但到目前为止,我的大多数项目的一部分,采用棱角分明。所以,我应该使用一些jQuery插件或通过角实现它。

I am quite new in Angular world. I am working on an application which involves Angular JS. I've been confronted with the requirement to implement custom scrollbar. My application does have jQuery too, but so far most part of my project uses Angular. So should I be using some jQuery widget or implement it via Angular.

如果角度,你能不能给我指点,我应该如何进行?

If Angular, can you provide me pointers on how should I proceed?

推荐答案

您应该可能实现它的角方式,即建筑/使用自定义角度的指令:

You should probably implement it in the Angular way, i.e., building / using a custom Angular's directive:

http://docs.angularjs.org/guide/directive

有关角学习资源:

https://github.com/jmcunningham/AngularJS-Learning

您可以随时使用jQuery插件/部件在角应用程序,但在这种情况下,最好的办法就是一个指令中封装的每个插件。角UI是一个项目,做了几个组件,包括Twitter的引导:

You can always use jQuery plugins / widgets in an Angular app, but in that case the best way is to encapsulate each plugin within a directive. Angular-UI is a project which does that for several components, including Twitter Bootstrap:

http://angular-ui.github.io/

我知道角度完美,滚动条,一个简单的角度的指令完美,滚动条,但没有测试它尚未:

I'm aware of angular-perfect-scrollbar, a simple Angular's directive for perfect-scrollbar, but haven't tested it yet:

https://github.com/itsdrewmiller/angular-perfect-scrollbar

http://www.yuiazu.net/perfect-scrollbar/ <​​/A>

http://www.yuiazu.net/perfect-scrollbar/

这篇关于角JS:实现自定义滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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