Documentation

ItemBadge class

Class represents item badge.

constructor(badgeOptions: ItemBadgeOptions): ItemBadge

Creates object of class ItemBadge.

Use the method item.setBadges() or badges option in the item class constructor for creating badge item.

badgeOptions — badge options, defined by the structure ItemBadgeOptions:

export type ItemBadgeOptions = {
    title: string | TextNodeOptions,
    textColor?: string,
    bgColor?: string,
};

  • title — badge title. Defined either by string or structure TextNodeOptions.
  • textColor — title text color.
  • bgColor — badge background.

© «Bitrix24», 2001-2024
Up