LinkOutput
Link output widget for displaying clickable hyperlinks.
Examples
Basic Usage
This example runs a form with a single page containing the widget
Example Code
from abstra.forms import LinkOutput, run
# Create a page with the widget
example_page = [
LinkOutput("https://abstra.io", link_text="Abstra Homepage"),
]
# Run the form
result = run([example_page])
# Print the result
print(result)
Parameters
Name | Description | Type | Default |
---|---|---|---|
link_url (required) | The URL that the link points to. | str | None |
link_text | The visible text of the link. | str | 'Click here' |
same_tab | Whether the link should open in the same tab. | bool | False |
full_width | Whether the link should take up the full width of its container. | bool | False |