0.1.12 • Published 7 years ago

nibit-portable v0.1.12

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

#NibitPortable a React.JS algorithm creator based on js.bit

This is a includable version of https://nibit.chemisax.com

install

npm i --save nibit-portable

usage

<NibitPortable
    blocks={this.state.blocks}
    onChange={blocks => this.setState({blocks})}
    config={config}
/>

##block format

[
    {
        type: 'block_type',
        params: {
            param1: 'value',
            param2: 'value'
        }
    },
]

##config format

[
    {
        name: 'Block Name',
        type: 'block_type',
        description: 'This is the block description',
        color: '#ffffff',
        textColor: '#000000',
        params: [
            {
                name: 'param1',
                label: 'Param 1',
                type: 'text',
                default: 'placeholder'
            },
            {
                name: 'param2',
                label: 'Param 2',
                type: 'pulldown',
                options: [
                    {
                        label: 'Option 1',
                        value: 'option1'
                    },
                    {
                        label: 'Option 2',
                        value: 'option2'
                    }
                ]
            }
        ]
    },
]
0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago