<roles-for-agent>
Usage
If you haven't already, go through the setup for the module.
Import the
<roles-for-agent>element somewhere in the javascript side of your web-app like this:
js
import '@darksoil-studio/roles-zome/dist/elements/roles-for-agent.js'- Use it in the html side of your web-app like this:
html
<roles-for-agent .agent=${agent}>
</roles-for-agent>WARNING
Like all the elements in this module, <roles-for-agent> needs to be placed inside an initialized <roles-context>.
Demo
Here is an interactive demo of the element (hint: the two available members are Alice and Bob):
API Reference
<roles-for-agent> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API: