cyclejs-sortable
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

cyclejs-sortable

Makes all children of a selected component sortable

Github Repo: https://github.com/cyclejs-community/cyclejs-sortable

Full documentation: https://cyclejs-community.github.io/cyclejs-sortable/

NPM: https://www.npmjs.com/package/cyclejs-sortable

Examples

You can check out live versions of the examples here:

Installation

npm install --save cyclejs-sortable

Basic Usage

For more information see the examples

const main = isolate(
    makeSortable(Component, { itemSelector: 'div > div' }),
    'myScope'
);

function Component(sources)
{
    return {
        DOM: xs.of(div([
            div(['one']),
            div(['two']),
            div(['three']),
            div(['four'])
        ]));
    }
}

Dependencies (2)

Dev Dependencies (14)

Package Sidebar

Install

npm i cyclejs-sortable

Weekly Downloads

6

Version

3.0.4

License

MIT

Unpacked Size

4.02 MB

Total Files

170

Last publish

Collaborators

  • supermanitu