@selectable/browser
v0.1.1
Published
> Library that provides selection capabilities to JS ecosystem
Downloads
5
Readme
@selectable/browser
Library that provides selection capabilities to JS ecosystem
This is an extension package for browsers.
See example usage in the demo app.
Simple use-case:
import { DomSelectable } from '@selectable/browser';
const selectable = new DomSelectable({
container: document.querySelector('...'),
});
selectable.on('selected', (items) => console.log('Selected items', items));
Running build
Run nx build browser
to execute the build the package.
Running unit tests
Run ng test browser
to execute the unit tests via Jest.