Skip to content

<custody-transfers-for-resource>

Usage

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

  2. Import the <custody-transfers-for-resource> element somewhere in the javascript side of your web-app like this:

js
import '@darksoil-studio/chain-of-custody/dist/elements/custody-transfers-for-resource.js'
  1. Use it in the html side of your web-app like this:
html
<custody-transfers-for-resource .resourceHash=${ resourceHash }>
</custody-transfers-for-resource>
html
<custody-transfers-for-resource resourceHash={ resourceHash }>
</custody-transfers-for-resource>
html
<custody-transfers-for-resource [resourceHash]="resourceHash">
</custody-transfers-for-resource>
html
<custody-transfers-for-resource :resourceHash="resourceHash">
</custody-transfers-for-resource>
html
<custody-transfers-for-resource resource-hash={encodeHashToBase64(resourceHash)}>
</custody-transfers-for-resource>

WARNING

Like all the elements in this module, <custody-transfers-for-resource> needs to be placed inside an initialized <chain-of-custody-context>.

Demo

Here is an interactive demo of the element:

API Reference

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