JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q48623F
  • License MIT

Apply element decorators / behaviors from a distance.

Package Exports

  • be-having
  • be-having/be-having.js

Readme

be-having

[TODO] Document this coherently

Apply element decorators / behaviors from a distance.

<script nomodule be-having='{
    "make": {
        "button": {
            "be": "counted",
            "having": {
                "transform": 
            }
        },
        "form": {
            "be": "reformable",
            "having": "formHavingProps"
        }
    }
}'> 
    import 'be-reformable/be-reformable.js';

    //someday (sigh), when the other two finally implement json modules, can switch to json
    export const make = [() => import('my-package/make.js'), () => import('https://esm.run/my-package@0.0.123/make.js')]; 
    export const counted = {
        impl:  () => import('be-counted/be-counted.js');
    };
    export const reformable = {
        impl: [() => import('be-reformable/be-reformable.js'), () => import('https://esm.run/be-reformable@0.0.23')]
    }

    export const formHavingProps = {
        
    };
</script>

Want to use this for server-rendered first instance of webcomponent, packaged in some way