Iframe Embed
info
This widget is deprecated. Use the Iframe Embed widget instead.
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
Name | Description | Type |
---|---|---|
url_or_html | The link to the document or the own document to display to the user | str |
width | The width of the iframe. Defaults to "800". | int |
height | The height of the iframe. Defaults to "600". | int |
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 |