• Stars
    star
    108
  • Rank 314,680 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 5 years ago

Reviews

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

Repository Details

Material UI Table Edit

material-ui-table-edit

Greenkeeper badge Material UI Table Edit

Install

npm i material-ui-table-edit

Usage

const React = require('react')
const ReactDOM = require('react-dom')
const getMuiTheme = require('material-ui/styles/getMuiTheme').default
const baseTheme = require('material-ui/styles/baseThemes/darkBaseTheme')
const EditTable = require('material-ui-table-edit')
const container = document.createElement('div')

document.body.appendChild(container)
const headers = [
  {value: 'Name', type: 'TextField', width: 200},
  {value: 'Address', type: 'TextField', width: 200},
  {value: 'Phone', type: 'TextField', width: 200},
  {value: 'Date', type: 'DatePicker', width: 200},
  {value: 'Enabled', type: 'Toggle', width: 50},
  {value: 'Last Edited By', type: 'ReadOnly', width: 100}
]

const rows = []

const onChange = (row) => {
  console.log(row)
}

const onDelete = (e) => {
  console.log(e)
}

const Main = React.createClass({
  getChildContext () {
    return {muiTheme: getMuiTheme(baseTheme)}
  },

  childContextTypes: {
    muiTheme: React.PropTypes.object.isRequired
  },

  render () {
    return (
      <EditTable
        onChange={onChange}
        onDelete={onDelete}
        rows={rows}
        headerColumns={headers}
        enableDelete={true}
      />
    )
  }
})

ReactDOM.render(
  <Main />,
  container
)

Code of Conduct

Contributing

Changelog

More Repositories

1

nesly

A programming language that compiles down to 6502 NES assembler
JavaScript
78
star
2

theodore

http framework
JavaScript
37
star
3

nesly-sound

Create beautiful music on your NES
Assembly
35
star
4

nesly-assembler

javascript assembler for 6502 asm
JavaScript
20
star
5

parser-6502

Parser for 6502 assembler
JavaScript
9
star
6

nes-notes

Notes about the Nintendo Entertainment System
6
star
7

sicp-exercises

sicp exercises for the HN SICP group
Scheme
4
star
8

js-ghost-stories

JavaScript Ghost Stories
4
star
9

pymapdb

A python application that inspects your MySQL DB and graphs it with Graphviz.
Python
4
star
10

all-the-workshops

All the NodeSchool workshops
JavaScript
3
star
11

rando-csv

Create a bunch of csv data
JavaScript
2
star
12

nes-sound-talk

NES Sound Talk
JavaScript
2
star
13

fake-product-generator

Generate fake products for testing
JavaScript
2
star
14

nesly-chr-edit

The site for editing CHR files.
JavaScript
2
star
15

material-ui-table-list

Render a list of things in columns
JavaScript
2
star
16

gbjam

gbjam
JavaScript
2
star
17

mix

MIX computer emulator in ruby
Ruby
2
star
18

php-phant

crazy php
PHP
2
star
19

nesly-split

split out the CHR and PRG of a NES Rom
JavaScript
2
star
20

pycompile

compiler built with python
Python
2
star
21

nesly-sprite

Rip the sprite data out of a NES CHR file
JavaScript
2
star
22

the-gnl-tao-te-ching

2
star
23

love-letter

A love Letter
JavaScript
1
star
24

emkay.github.com

My github page.
JavaScript
1
star
25

tiny-cache

a tiny cache db
Rust
1
star
26

heart-stream

Heart Stream πŸ’–
JavaScript
1
star
27

canoga

fancy cli music player
JavaScript
1
star
28

fake-json-stream

Fake json data
JavaScript
1
star
29

php-filestorage

filestorage class for php
PHP
1
star
30

mcp

cp multiple files
Rust
1
star
31

nanocomponent-adapters-angular

Nanocomponent adapter for Angular
JavaScript
1
star
32

jonah

Hex to Ascii, Ascii to Hex
JavaScript
1
star
33

spec-la-talk

A talk for spec.la
Assembly
1
star
34

python-ril

A Python RIL API client
Python
1
star
35

animation-sheet

take a sprite sheet and animate it
1
star
36

tooz.dev

tooz.dev
HTML
1
star
37

lightswitch

The feature switch service
JavaScript
1
star
38

Tune

Music tuner for Playdate
Lua
1
star
39

bwv-847

BWV 847 Prelude No. 2 in C Minor
JavaScript
1
star