Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appli456/rax-multirow
https://github.com/appli456/rax-multirow
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/appli456/rax-multirow
- Owner: appli456
- Created: 2019-03-15T06:48:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T06:56:45.000Z (over 5 years ago)
- Last Synced: 2024-08-03T04:08:33.532Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rax - rax-multirow - universal multi column layout component (Rax / Rax Tools)
README
# MultiRow
[![npm](https://img.shields.io/npm/v/rax-multirow.svg)](https://www.npmjs.com/package/rax-multirow)
Multi column layout component
## Install
```bash
$ npm install rax-multirow --save
```## Import
```jsx
import MultiRow from 'rax-multirow';
```## Props
| name | type | default | describe |
| :--------- | :------- | :--- | :--------------------------- |
| renderCell | Function | | render template function(need) |
| dataSource | List | | data for render(need) |
| cells | Number | 1 | each row contains several columns, default 1 columns
(need) |## Example
![](https://img.alicdn.com/tps/TB12k55KVXXXXXfXVXXXXXXXXXX-415-230.png)
```jsx
// demo
import {createElement, Component, render} from 'rax';
import MultiRow from 'rax-multirow';
import View from 'rax-view';class Demo extends Component {
render() {
return (
{ return {num} }}
/>
);
}
}render();
```