be-enhanced be-hiviors provide the ability to apply multiple cross-cutting enhancements to a single element. Sometimes, though, we need to apply them in a particular order.
be-promising provides this capability.
<label
be-typed
defer-be-clonable
be-clonable
defer-be-delible
be-delible
be-promising='be-typed be-clonable be-delible'>[Specify Name]
</label>
or
<label ⚙️ defer-⿻ ⿻ defer-⌫ ⌫ 🤞="⚙️ ⿻ ⌫">[Specify Name]</label>
Idea influenced by this discussion.
What this does:
- Looks for be-hive tag, finds corresponding mount observer script elements (MOSEs)
- In the sequence specified in the attribute:
- If applicable, removes the defer-[base] attribute
- From the MOSE, gets the emc for that attribute
- Awaits *.whenResolved
- Rinse and repeat
Any web server than can serve static files will do, but...
- Install git.
- Do a git clone or a git fork of repository https://github.com/bahrus/be-promising
- Install node.js
- Open command window to folder where you cloned this repo.
-
npm install
-
npm run serve
- Open http://localhost:3030/demo in a modern browser.
<script type=module crossorigin=anonymous>
import 'https://esm.run/be-promising';
</script>
import 'be-promising/be-promising.js';