Skip to content

ImageSourceAttribution

Inherits: SourceAttribution

An image attribution permanently displayed adjacent to the open/close icon of a RichAttribution control. For it to be displayed, it should be part of a RichAttribution.attributions list.

Raises:

Properties

  • height(Number) –

    The height of the image.

  • image(Image) –

    The Image to be displayed.

  • tooltip(str | None) –

    Tooltip text to be displayed when the image is hovered over.

Events

Properties#

height #

height: Number = 24.0

The height of the image. Should be the same as RichAttribution.permanent_height, otherwise layout issues may occur.

image #

image: Image

The Image to be displayed.

Note

Must be provided and visible.

tooltip #

tooltip: str | None = None

Tooltip text to be displayed when the image is hovered over.

Events#

on_click #

on_click: (
    ControlEventHandler[ImageSourceAttribution] | None
) = None

Fired when this attribution is clicked/pressed.