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:

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({
  extra: {
    item_info: {
      author_image_url: "string", //Example:
      author: "Item's Author",
      image_url: "string", //Example:
      name: "Item's Name",
      category: "Item's Category",

Documentation related to this page