Skip to main content

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

NameDescriptionType
htmlThe html snippet to display to the userstr
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