Home > @i2analyze/notebook-sdk > app > IElementEditorBase > setBadge
app.IElementEditorBase.setBadge() method
Clears the badge icon in the given slot on the element.
Signature:
setBadge(slot: visual.BadgeSlot, href: undefined): this;
Introduced: version 1.10
Parameters
| Parameter | Type | Description |
|---|---|---|
| slot | visual.BadgeSlot | The slot position (0 to 5). |
| href | undefined |
undefined is the only valid argument for clearing the slot.
|
Returns:
this
The element, with the badge icon in the specified slot cleared.
Remarks
After this call, style.getBadge(slot) returns undefined and style.badges no longer includes an entry for the slot.