Skip to main content

Link

Display a link to the user.

Examples

Basic Example

The following example demonstrate some of the available functionality for display_link

from abstra.forms import display_link

display_link("https://abstra.io", link_text="Abstra Homepage")

Parameters

NameDescriptionType
link_urlThe url of the link to display to the userstr
link_textThe text to display on the link. Defaults to "Click here".str
same_tabWhether to open the link in the same tab or not. Defaults to False.bool
end_programWhether the program should end after the widget is shown. Defaults to False.bool
full_widthWhether the input should use full screen width. Defaults to False.bool
button_textWhat text to display on the button when the widget is not part of a Page. Defaults to 'Next'.str