Skip to main content

Iframe Embed

Embed content using an iframe.

Examples

Basic Example

The following example demonstrate some of the available functionality for display_iframe

from abstra.forms import display_iframe

display_iframe(
"https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d2965.0824050173574!2d-93.63905729999999!3d41.998507000000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1sWebFilings%2C+University+Boulevard%2C+Ames%2C+IA!5e0!3m2!1sen!2sus!4v1390839289319",
width="300",
height="250",
)

Parameters

NameDescriptionType
url_or_htmlThe link to the document or the own document to display to the userstr
widthThe width of the iframe. Defaults to "800".int
heightThe height of the iframe. Defaults to "600".int
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