TextSourceAttribution
TextSourceAttribution
#
Bases: SourceAttribution
A text source attribution displayed on the Map.
For it to be displayed, it should be part of a
RichAttribution.attributions
list.
on_click
#
on_click: (
ControlEventHandler[TextSourceAttribution] | None
) = None
Fired when this attribution is clicked/pressed.
parent
#
parent: BaseControl | None
The direct ancestor(parent) of this control.
It defaults to None
and will only have a value when this control is mounted
(added to the page tree).
The Page
control (which is the root of the tree) is an exception - it always
has parent=None
.
prepend_copyright
#
prepend_copyright: bool = True
Whether to add the '©' character to the start of text
automatically.
before_update
#
This method is called every time when this control is being updated.
/// details | Note
Make sure not to call/request an update()
here.
///
build
#
Called once during control initialization to define its child controls. self.page is available in this method.