Options
All
  • Public
  • Public/Protected
  • All
Menu

Icon (visual) which can appear on toolbars, buttons,... This interface just represents icon without context and placement (vs. IToolbarIcon)

collboard-modules-sdk

Hierarchy

  • IIconAnonymous

Index

Properties

active?: boolean

Marks if the icon should appear selected

className?: string

Optional class name which should be set on the icon

icon: string | URL

Icon graphic It can be one of the following:

  • string with the name of the icon like "pyramid"
  • string with emoji like "🔥"
  • URL as a string or URL object
inactive?: boolean

Marks if the icon should be unclickable (also onClick does not get called when true)

Methods

  • onClick(): Promisable<void>
  • Callback called when the icon is clicked

    Note: Prefer to use onActivate when using IToolbarIcon

    Returns Promisable<void>