Skip to main content

ImageSourceAttribution

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 flet_map.RichAttribution.attributions list.

Inherits: SourceAttribution

Properties

Events

  • on_click - Fired when this attribution is clicked/pressed.

Properties

heightclass-attributeinstance-attribute

height: Number = 24.0

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

imageinstance-attribute

image: Image

The Image to be displayed.

Raises:

  • ValueError - If the image is not visible.

tooltipclass-attributeinstance-attribute

tooltip: Optional[str] = None

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

Events

on_clickclass-attributeinstance-attribute

on_click: Optional[ControlEventHandler[ImageSourceAttribution]] = None

Fired when this attribution is clicked/pressed.