@tbbn/widget-trade-directory
v0.1.0
Published
Embeddable global directory listing grid.
Readme
@tbbn/widget-trade-directory
Status: WORKING.
<tbbn-trade-directory category="Apparel" limit="24"> — paginated grid of the global directory.
Reuses @tbbn/widget-trade-card's renderCard() markup helper directly (not the
<tbbn-trade-card> element) to avoid one HTTP request per card, since it already has full
listing objects from a single directory page fetch.
<script type="module" src="https://cdn.tbbnetwork.com/widgets/tbbn-trade-directory.js"></script>
<tbbn-trade-directory
api-base-url="https://api.tbbnetwork.com"
api-key="sk_sandbox_..."
category="Apparel"
></tbbn-trade-directory>Attributes
category— optional filterlimit— page size
Depends on
@tbbn/widget-core, @tbbn/widget-trade-card.
