All Projects → allenhwkim → ngui-common

allenhwkim / ngui-common

Licence: MIT license
Angular 6 Virtual Scroll, Lazy Rendering, Virtual List, Autocomplete, etc

Programming Languages

HTML
75241 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to ngui-common

ngx-tree
A derived version of angular-tree-component without mobx, better performance.
Stars: ✭ 13 (-23.53%)
Mutual labels:  virtual-scroll
react-virtual-scroller
A react implementation of twitter VirtualScroller.
Stars: ✭ 43 (+152.94%)
Mutual labels:  virtual-scroll
React Tiny Virtual List
A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
Stars: ✭ 2,057 (+12000%)
Mutual labels:  virtual-scroll
Revogrid
Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
Stars: ✭ 1,870 (+10900%)
Mutual labels:  virtual-scroll
vue-virtual-scroll-grid
A Vue 3 component that can render a list with 1000+ items as a grid in a performant way.
Stars: ✭ 64 (+276.47%)
Mutual labels:  virtual-scroll

@ngui/common

Angular 12+ UI common directives, functions, services

Build Status npm npm npm

Demo
Object Documentation
Code Coverage Report
Unit Test Report
Acceptance Report
Article on Medium

Install

  1. install @ngui/common
$ npm install @ngui/common --save
  1. import NguiCommonModule to your AppModule
import { NguiInviewModule, NguiListModule, NguiUtilsModule } from '@ngui/common';

@NgModule({
  imports: [BrowserModule, FormsModule, NguiListModule, NguiInviewModule, NguiUtilsModule],
  declarations: [AppComponent],
  providers: [HTTP_PROVIDERS],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

Use it in your code

<!-- the image is only displayed when "ngui-inview" is in viewport -->
<ngui-inview style="min-height: 300px">
  <img *ngIf src="https://picsum.photos/800/300" height="33%">
</ngui-inview>

Modules

NguiInViewModule

Handles lazy rendering of Angular components, which utilizes HTML5 IntersectionObserver.

For IE11 and Safari, please add polyfill for this module:
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>

  • ngui-inview component
  • ngui-inview directive

NguiUtilsModules

Collection of basic utility functions

  • DynamicComponentService
  • nguiHilight pipe
  • fireEvent function

NguiListModule

Handles list elements with highlight and keyboard/mouse interaction

  • ngui-inview-page component
  • ngui-list component
  • ngui-virtual-list component
  • ngui-autocomplete component
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].