🔒 Resource List

Creates an unstyled, unordered list with <a> tags.



By default, this component will only emit click events for you to decide how they are handled. This will be useful if you use a client-side router such as react-router, etc.

Name Details Data
manifold-resourceList-click User has clicked on a link resourceId, resourceLabel
document.addEventListener('manifold-resourceList-click', ({ detail }) => {
  // {
  //   resourceId: '2358fw1rfjtjv0ubty0waymvd204c',
  //   resourceLabel: 'my-resource'
  // }

  navigate(`/resource/${detail.resourceLabel}`); // your client-side router function

Link format

To navigate using a traditional <a> tag (which would cause a full-page refresh), specify a resource-link-format attribute, using :resource as a placeholder:


Note that specifying this attribute will disable the custom event unless preserve-event is passed as well.

Polling interval

This will change the polling interval from 3000 ms (3 seconds, default) to 10000 ms (10 seconds):

<manifold-data-resource-list poll-interval="10000"></manifold-data-resource-list>

Pausing updates

By default, this component will subscribe to updates from the server (in case users add a new resource in a different tab, or rename a resource, etc.). To disable updates, pass the paused attribute:

<manifold-data-resource-list paused></manifold-data-resource-list>

Context (team, org, etc.)

To filter the resource list by an owner-id that provides a different context than just the user context (e.g. team resources), you can provide the owner-id to filter by:

<manifold-data-resource-list owner-id="team-123"></manifold-data-resource-list>