1.1.7 • Published 3 years ago

cell-render v1.1.7

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

CELL RENDER

Table-cell-render defined the common cell render functions based on ant-design and which can greatly easy to render cell

This project is generated from npm-template.

Install

$ npm install table-cell-render --save or yarn add table-cell-render

Usage

You can see apis for more details!

Here's a quick demostration:

import renderCell from 'cell-render'

function App() {
  const columns = [
    {
      title: 'Name',
      dataIndex: 'name',
      key: 'name',
      width: 120,
      render: (value: any) => {
        return renderCell('string', value)
      },
    },
    ...
  ]
  return (
    <div className="App" style={{ padding: '50px' }}>
      <Table scroll={{ x: 1500}} columns={columns} dataSource={data} />
    </div>
  )
}

export default App

We have supported more useful usages, you can check docs: cell-render for more details!

Thanks for using, solo with code🍁!

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.18

3 years ago

1.0.16

3 years ago

1.0.14

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.6

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago