Adding item information

The extra object

The extra object is optional and can be used to show the details of your item.


The options you can pass to the object are:

PropertyTypeDescription
author_image_urlStringThe URL of the author's avatar
authorStringThe name of the author
image_urlStringThe URL of the item's image. Otherwise, the default image will be shown.
nameStringThe name of the item
categoryStringThe category of the item. The default value is token.

const widget = new WertWidget({
  ...options,
  extra: {
    item_info: {
      author_image_url: "string", //Example: https://something.com/images/author_image.jpg
      author: "Item's Author",
      image_url: "string", //Example: https://something.com/images/image.jpg
      name: "Item's Name",
      category: "Item's Category",
    },
  },
});


Documentation related to this page