Skip to content

SimpleAttribution

SimpleAttribution #

Bases: MapLayer

A simple attribution layer displayed on the Map.

alignment: ft.Alignment = field(default_factory=lambda: ft.Alignment.bottom_right()) #

The alignment of this attribution on the map.

Defaults to ft.Alignment.bottom_right()

bgcolor: ft.ColorValue = ft.Colors.SURFACE #

The color of the box containing the text.

Defaults to ft.Colors.SURFACE.

on_click: ft.OptionalControlEventCallable = None #

Fired when this attribution is clicked/pressed.

text: Union[str, ft.Text] #

The attribution message to be displayed.

Value is of type str and ft.Text.