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
You can check out live versions of the examples here:
- simple: https://cyclejs-community.github.io/cyclejs-sortable/examples/simple/
- horizontal: https://cyclejs-community.github.io/cyclejs-sortable/examples/horizontal/
npm install --save cyclejs-sortable
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'])
]));
}
}