HTML Embed
info
This widget is deprecated. Use the HTML Embed widget instead.
Simple HTML embed widget.
Examples
Basic Example
The following example demonstrate some of the available functionality for display_html
from abstra.forms import display_html
display_html(
'<svg width="100" height="100"><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>'
)
Parameters
Name | Description | Type |
---|---|---|
html | The html snippet to display to the user | str |
end_program | Whether the program should end after the widget is shown. Defaults to False. | bool |
full_width | Whether the input should use full screen width. Defaults to False. | bool |
button_text | What text to display on the button when the widget is not part of a Page. Defaults to 'Next'. | str |