proxy-decor
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

proxy-decor

<be-sorted-impl upgrade=* if-wants-to-be=sorted></be-sorted-impl>

...

<proxy-decor id=proxyDecor for=be-sorted></proxy-decor>
<ul be-sorted='{"direction":"asc","nodeSelectorToSortOn":"span"}'>
    <li>
        <span>Zorse</span>
    </li>
    <li>
        <span>Aardvark</span>
    </li>
</ul>

...
<script>
    proxyDecor.addEventListener('sorted', e => {
        console.log('list has been sorted');
    });
    proxyDecor.proxy.direction = 'desc';
</script>

Package Sidebar

Install

npm i proxy-decor

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

6.6 kB

Total Files

7

Last publish

Collaborators

  • bahrus