Link

Link navigates to an external web page or initiate command within the app.

Properties#

NameTypeDefaultDescription
valuestringLink text.
urlstringLink URL to navigate. If url is not specified the link will be firing click event.
newWindowboolfalseWhether to open link in a new browser window.
titlestringPopup hint for the link.
sizestringtiny, xSmall, small, smallPlus, medium, mediumPlus, large, xLarge, xxLarge, superLarge, mega
boldboolfalseWhether font weight is bold.
italicboolfalseWhether font style is italic.
preboolfalsePreformatted text in monospace font.
alignstringleftleft, center, right, justify

Events#

NameDescription
clickFires when a user clicks the link.

Child controls#

  • Any control - will be wrapped by the link.

Examples#

Adding a new Link control onto the page:

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