• Stars
    star
    5,386
  • Rank 7,314 (Top 0.2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UI Grid: an Angular Data Grid

UI-Grid : An AngularJS data grid

Coverage Status FOSSA Status npm OpenCollective OpenCollective Gitter

Help!

Head to http://ui-grid.info for documentation and tutorials. Join https://gitter.im/angular-ui/ui-grid to discuss development and ask for specific help.

We're always looking for new contributors, for pro-level contribution guidelines look at Contributor.md, if you're more of a first-timer with open source (or just need a refresher), look at First Time Open Source Contributor.md, also look at Developer.md

Need Some Inspiration? Have a look at our open good first issue issues, or the help wanted issues if you are looking for more of a challenge

Installing

Bower

    bower install angular-ui-grid
    <link rel="stylesheet" type="text/css" href="bower_components/angular-ui-grid/ui-grid.min.css">
<script src="bower_components/angular-ui-grid/ui-grid.min.js"></script>

NPM

    npm install angular-ui-grid
    <link rel="stylesheet" type="text/css" href="node_modules/angular-ui-grid/ui-grid.min.css">
    <script src="node_modules/angular-ui-grid/ui-grid.min.js">

CDN

You can use jsdelivr.com's cdn url to access the files. Just alter the version as you need.

Angular Compatibility

UI-Grid is currently compatible with Angular versions ranging from 1.4.x to 1.8.x.

Feature Stability

UI-Grid comes bundled with several features. Not all of them are currently stable. See the list below for the stability of each:

Feature Release state
auto-resize-grid (API) beta
cellnav (API) stable
edit (API) stable
expandable (API) alpha
exporter (API) stable
grouping (API) beta
importer (API) stable
infinite-scroll (API) beta
move-columns (API) alpha
pagination (API) alpha
pinning (API) stable
resize-columns (API) stable
row-edit (API) stable
saveState (API) stable
selection (API) stable
tree-base (API) beta
tree-view (API) beta

For more details on the features check the Tutorials.

Plugins

UI-Grid has an excellent plugin system. Most new features can be added as plugins. Please see some discussion of that in the Developer guidelines. There is a list of known plugins on the tutorial site. If you would like your plugin added to that list, please edit the tutorial page and send a pull request.

Building

The first step is to install dependencies. git is required and must be available from the command line. If you don't have it, install git and ensure that the executable is in your path. If you are new to git, the easiest way to install is by installing the github client.

The grunt command line utility is also required.

# If you don't already have the grunt-cli installed:
> npm install -g grunt-cli

With git and grunt-cli installed you simply run the following commands to install all dependencies.

> npm install
> grunt install

The default grunt task will test and build files into dist/

> grunt

Developing

Development "watch" task. This will automatically rebuild from source on changes, reload Gruntfile.js if you change it, and rebuild the docs.

  1. A server on localhost:9002 serving whichever directory you checked out, with livereload. Navigate to http://localhost:9002/misc/demo to see the demo files.
  2. A server on localhost:9003 serving the ./docs directory. These are the docs built from source with grunt-uidocs-generator.

grunt dev

By default grunt dev will start several karma background watchers that will run the tests against multiple versions of angular. You may specify the version(s) you want to use with the --angular flag:

> grunt dev --angular=1.6.7

> grunt dev --angular=1.5.11,1.6.7

You can also use the --browsers specify what browsers to test with (ChromeHeadless is the default).

> grunt dev --browsers=Chrome

# Run a single test run against multiple browsers
> grunt karma:single --browsers=Chrome,Firefox,IE

By default the dev tasks runs e2e tests with protractor. If you have problems with them running slow or hanging, you can disable them with the --no-e2e flag:

> grunt dev --no-e2e

The grunt task is getting slower as the body of tests gets larger. If you're only working on the core functionality you can disable the unit tests on the features with the --core flag:

> grunt dev --core

As a shortcut for options that the developers frequently use, there is also a --fast flag, which equates to --core --no-e2e --angular=<latest>:

> grunt dev --fast

Karmangular

The karmangular task runs tests serially against multiple browsers (it is used internally by the dev task).

# Run tests against all available versions of Angular on Chrome
> grunt karmangular --browsers=Chrome

# Run tests with a couple versions of Angular against the default ChromeHeadless browser
> grunt karmangular --angular=1.5.11,1.6.7

SauceLabs

ui-grid is set up to run against SauceLabs. You must have the SAUCE_ACCESS_KEY environment variable set.

# Execute tests for a couple versions of angular on IE8
> grunt karmangular --angular=1.5.11,1.6.7 --browsers=SL_IE_8

# Run the watch tasks against IE10
> grunt dev --browsers=SL_IE10

The full list of SauceLabs browsers can be seen by running grunt saucebrowsers. Usually it should suffice to let Travis do this testing automatically, unless you're trying to debug a browser-specific issue.

What Happened to 2.x?

As of the 3.0 release, 2.x is officially deprecated. There will be no further releases. If for some reason you need to find the 2.x source please see the 2.x branch.

The 2.x docs are here: https://github.com/angular-ui/ng-grid-legacy/wiki.

Repository Rename

With the 3.0 release, the repository has been renamed from "ng-grid" to "ui-grid".

All network traffic to GitHub should redirect automatically but they say you should update your git remote url:

git remote set-url origin https://github.com/angular-ui/ui-grid.git

Thanks

Thanks to Sauce Labs and BrowserStack for providing their testing platforms to open source projects for free.

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our website and on our README on Github with a link to your site. [Become a sponsor]

More Repositories

1

bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
JavaScript
14,347
star
2

ui-router

The de-facto solution to flexible routing with nested views in AngularJS
TypeScript
13,611
star
3

ui-select

AngularJS-native version of Select2 and Selectize
JavaScript
3,278
star
4

angular-google-maps

AngularJS directives for the Google Maps Javascript API
CoffeeScript
2,530
star
5

angular-ui-OLDREPO

DISCONTINUED REPO: This project has been restructured ->
JavaScript
2,210
star
6

ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
JavaScript
1,494
star
7

ui-utils

Deprecated collection of modules for angular
JavaScript
1,443
star
8

AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
JavaScript
1,422
star
9

ui-sortable

jQuery UI Sortable for AngularJS
JavaScript
1,265
star
10

ui-select2

AngularJS wrapper for select2 (deprecated, use angular-ui/ui-select)
JavaScript
594
star
11

ui-ace

This directive allows you to add ACE editor elements.
JavaScript
580
star
12

ui-tinymce

AngularUI wrapper for TinyMCE
JavaScript
490
star
13

ui-layout

This directive allows you to split !
JavaScript
410
star
14

ui-mask

Mask on an input field so the user can only type pre-determined pattern
JavaScript
393
star
15

ui-codemirror

This directive allows you to add CodeMirror to your textarea elements.
JavaScript
383
star
16

ui-grid.info

Website for ui-grid
377
star
17

ui-scroll

Unlimited bidirectional scrolling over a limited element buffer for AngularJS applications
JavaScript
324
star
18

ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
JavaScript
316
star
19

AngularJS-StyleGuide

Example of scalable architecture for my NG-Conf 2014 talk
JavaScript
287
star
20

ui-map

Google Maps
JavaScript
285
star
21

AngularJS-Atom

An AngularJS package for Github's Atom editor
CoffeeScript
285
star
22

ui-date

jQuery UI Datepicker for AngularJS
JavaScript
266
star
23

ui-slider

jQuery UI Slider for AngularJS
HTML
265
star
24

AngularJS-brackets

AngularJS plugin for Brackets (booya)
JavaScript
217
star
25

bootstrap-bower

This is a bower repository to hold Angular UI Bootstrap releases.
JavaScript
158
star
26

alias

Create concise aliases for third-party directives and templates
JavaScript
115
star
27

ui-mention

Facebook-like @mentions for text inputs built around composability
JavaScript
115
star
28

ui-validate

General-purpose validator for ngModel
JavaScript
111
star
29

ui-chart

This directive lets you use jqPlot with Angular
JavaScript
111
star
30

ui-uploader

Customizable file uploader
JavaScript
108
star
31

ui-tour

A native tour-type directive that will lace easily-controllable tooltips throughout your app
HTML
94
star
32

AngularJs.tmbundle

AngularJs Textmate Bundle
87
star
33

angular-ui.github.com

Angular UI homepage
HTML
80
star
34

bower-ui-grid

Bower package for UI Grid
JavaScript
39
star
35

ui-scrollpoint

Add a 'ui-scrollpoint' class to elements when the page scrolls past them.
JavaScript
29
star
36

ui-event

Bind a callback to any event not natively supported by Angular
JavaScript
28
star
37

AngularJS-tern-plugin

A, slow'ish moving, WIP plugin for Tern that enables it to understand AngularJS dependency injection.
JavaScript
26
star
38

community

Placeholder repo for discussion
24
star
39

angular-ui-publisher

Helper component for building and publishing your angular modules as bower components
JavaScript
20
star
40

ui-leaflet-draw

angular directive for ui-leaflet to utilize Leaflet.Draw
CoffeeScript
16
star
41

ui-indeterminate

Toggle a checkbox input's special 'indeterminate' property
JavaScript
14
star
42

angular-ui-router-bower

Bower publishing for Angular UI-Router for ng1
14
star
43

ui-calendar2

Angular Native Calendar, inspired by ui-calendar
JavaScript
13
star
44

angular-ui-docs

Helper component for building your angular modules as bower components
JavaScript
10
star
45

ng-grid-legacy

ng-grid 2.x
JavaScript
5
star
46

builder

Build server for angular-ui
JavaScript
3
star
47

ui-position

Helper class used by a lot of angular projects on the web
1
star