#webui

sortable-js

Rusty bindings to SortableJS, to build sortable lists in wasm

6 releases

0.1.5+js.1.15.0.patched.1 Nov 30, 2022
0.1.4+js.1.15.0.patched.1 Nov 30, 2022

#607 in WebAssembly

MIT license

130KB
3K SLoC

JavaScript 3K SLoC // 0.1% comments Rust 264 SLoC // 0.0% comments

SortableJS-rs

This crate provides rusty bindings to SortableJS.

The documentation mostly lives with the official SortableJS documentation.

Just adding this crate as a dependency should be enough to get everything working when using trunk. Just be careful to keep alive the return value of Sortable::apply, or you will get JavaScript exceptions.

You can find example usage of SortableJS from a pure-Rust WASM application in the examples/ directory.


lib.rs:

This crate provides rusty bindings to SortableJS.

The documentation mostly lives with the official SortableJS documentation.

Just adding this crate as a dependency should be enough to get everything working when using trunk. Just be careful to keep alive the return value of Sortable::apply, or you will get JavaScript exceptions.

You can find example usage of SortableJS from a pure-Rust WASM application in the examples/ directory.

Dependencies

~8.5MB
~171K SLoC