Skip to content

<manage-role-assignees>

Manage the assignees for a certain role in this hApp.

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <manage-role-assignees> element somewhere in the javascript side of your web-app like this:

js
import '@darksoil-studio/roles-zome/dist/elements/manage-role-assignees.js'
  1. Use it in the html side of your web-app like this:
html
<manage-role-assignees role="editor">
</manage-role-assignees>

WARNING

Like all the elements in this module, <manage-role-assignees> 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

<manage-role-assignees> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API: