Giter Site home page Giter Site logo

pioug / md-virtual-repeater Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 2.0 33 KB

Infinite list / virtual scroll directive for Angular 1.x

Home Page: https://pioug.github.io/md-virtual-repeater/

JavaScript 94.93% HTML 5.07%
angular directive infinite-scroll virtual-scroll

md-virtual-repeater's Introduction

md-virtual-repeater is a directive from angular/material.

Demo

https://pioug.github.io/md-virtual-repeater/

Source: https://github.com/pioug/md-virtual-repeater/blob/gh-pages/index.html

Why?

  • Best implementation of the infinite list for Angular 1.x
  • Standalone version (no dependency to Angular Material)
  • Simple installation (no external CSS, no bundle tool required)
  • Safe for minification (DI annotation included)

Installation

# With NPM
npm install @pioug/md-virtual-repeater

# With Bower
bower install md-virtual-repeater

Include the script virtual-repeater.js in your HTML:

<!-- If you used NPM previously -->
<script src="node_modules/@pioug/md-virtual-repeater/virtual-repeater.js"></script>

<!-- If you used Bower previously -->
<script src="bower_components/md-virtual-repeater/virtual-repeater.js"></script>

Load the Angular module virtualRepeat in your JS:

angular.module('myAngularApp', ['virtualRepeat']);

Usage

<md-virtual-repeat-container md-top-index="topIndex">
  <div md-virtual-repeat="i in items" md-item-size="20">Hello {{i}}!</div>
</md-virtual-repeat-container>
md-virtual-repeat-container {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  position: absolute;
  width: 100%;
}

md-virtual-repeat-container:-webkit-scrollbar {
  width: 0 !important;
}

Documentation

md-virtual-repeater's People

Contributors

pioug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

av-emorel godhh

md-virtual-repeater's Issues

new versions support

Hello. First of all thanks for such library that allows render large data sets without performance issues.

I'm gonna to use this library in my project. And i just want to ask you about current version of angular-material captured in this library (actually virtualRepeat directive from angular material). And do you plan to support new releases from angular-material repo?
For example there is new release with bug fixes for virtualRepeat.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.