Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/appli456/rax-multirow


https://github.com/appli456/rax-multirow

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

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();
```