npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

adazzle-react-grid

v0.12.2

Published

Data grid for React

Downloads

594

Readme

React Grid

Data grid for React.

Build Status Coverage Status

Installation

React Grid is available via npm.

npm install adazzle-react-grid --save

Or if you'd like to use bower, it's as easy as:

bower adazzle-react-grid --save

Usage

React Grid comes in two flavours. A basic uneditable data grid as well as a more advanced datagrid that attempts to provide a rich excel like experience with filtering, sorting, copy/paste, cell drag down, custom editors and formatters.

To use the basic grid, just include the following files

<!-- The core React srcrary -->
<script src="http://fb.me/react-0.11.0.js"></script>
<!-- basic React Grid component -->
<script src="adazzle-react-grid/dist/ReactGrid.Grid.js"></script>

or if using CommonJs

var Grid = require('adazzle-react-grid');

To use the advanced features, add these files to your page

<!-- The core React srcrary -->
<script src="http://fb.me/react-0.11.0.js"></script>
<!-- advanced ReactGrid component -->
<script src="adazzle-react-grid/dist/ReactGrid.Grid.WithAddons.js"></script>
<!-- optional collection of editors for React Grid-->
<script src="adazzle-react-grid/dist/ReactGrid.Grid.Editors.js"></script>
<!-- optional collection of formatters for React Grid-->
<script src="adazzle-react-grid/dist/ReactGrid.Grid.Formatters.js"></script>

or if using CommonJs

var ExcelGrid = require('adazzle-react-grid/addons');
var GridEditors = require('adazzle-react-grid/editors');
var GridFormatters = require('adazzle-react-grid/formatters');

Building Your Copy of React Grid

The process to build reactGrid.js is built entirely on top of node.js, using many srcraries you may already be familiar with.

Prerequisites

  • You have node installed at v0.10.0+

Setup

run npm install You can then just run gulp this will:

  • compile all the jsx into js
  • wrap up all the examples registered under \examples
  • compile less -> css
  • fire up a server and open a test page

Gulp

We use gulp to automate many tasks. Look in gulp/tasks folder to see full list. The important ones to know:

# Build examples folder, fire up server and open exmaples page
gulp
# Build reactGrid srcrary in UMD format in dist folder 
gulp dist
# Build and run tests in your browser
gulp tests-launch 
# Compile Less and build styles
gulp styles
# Wipe out build directory
gulp clean

Adding examples

To add any other examples, you just need to:

  1. Add a .js file under the examples folder that returns a react component by module.exports = someNewExample
  2. in examples\index.js register this by adding components.push({id:'Name for your component', module:require('./nameOfYourFile') });

This will then add a new menu to the examples.html page

Tests

we are using jasmine for tests and these can either be run in a standalone page by running gulp tests-launch *note: you need to run bower install first For automation, we are using karma To run the tests use gulp tests To watch for file changes, use ~~gulp tdd~~ this is a work in progress, and wont watch your files unless you first run gulp tests-build to do our react/browserify transforms

Credits

React Grid is free software created by [Prometheus Research][] and is released under the MIT.