Natively Pronounced Mandarin

    rax-multirow
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.5 • Public • Published

    MultiRow

    npm

    Multi column layout component

    Install

    $ npm install rax-multirow --save

    Import

    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

    // demo
    import {createElement, Component, render} from 'rax';
    import MultiRow from 'rax-multirow';
    import View from 'rax-view';
     
    class Demo extends Component {
      render() {
        return (
          <View style={{width: 750}}>
            <MultiRow dataSource={['tom', 'jeck', 'lilei', 'hanmeimei']} 
             cells={2} renderCell={(num, index) => { return <View>{num}</View> }} 
           />
          </View>
        );
      }
    }
     
    render(<Demo />);

    Install

    npm i rax-multirow

    DownloadsWeekly Downloads

    14

    Version

    0.6.5

    License

    BSD-3-Clause

    Unpacked Size

    206 kB

    Total Files

    15

    Last publish

    Collaborators

    • zeroling
    • wintercn
    • yuanyan
    • yacheng
    • liangzhi.llz