Skip to content

myoneflag/table-cms-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table-CMS-React

Build simple table with @antd-table

✨ Features

  • Define column and row count
  • Support custom render.

Install

yarn add table-cms-react
npm install table-cms-react

Usage

Full tutorial

import React, { Component } from 'react'

import { TableCms, TableRender } from 'table-cms-react'
// cms
const Example = () => {
    return (
	  <TableCms
	  	defaultSize={
			column: 3,
			row: 3
		}
		onChange={(data) => console.log(data)}
     />
  );
}
// render
const Example = () => {
    return (
	  <TableRender
	  	data={data}
     />
  );
}

Props

 defaultSize
 onChange
 data

License

MIT © 2020

About

Build table for cms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published