Image

An image is a graphic representation of something (e.g photo or illustration).

Properties#

NameTypeDefaultDescription
srcstringImage source URL.
altstringImage alternative text.
titlestringPopup hint.
fitstringUsed to determine how the image is scaled and cropped to fit the frame. Allowed values: none, contain, cover, center, centerContain, centerCover
maximizeFramebooleanfalseIf true, the image frame will expand to fill its parent container.

Examples#

Adding a new Link control onto the page:

link1 = page.add(Link(url="https://pglet.io", value="Pglet website", new_window=True))