get_iframe#
- Image.get_iframe(width: int | float = 0, height: int | float = 0, *, context=None, request=None) str#
Return an inline iframe containing the rendered item.
- Parameters:
- width
intorfloat,optional Iframe width. By default, image width is used up to 1000 pixels, or 1000 pixels for other item types.
- height
intorfloat,optional Iframe height. By default, image height is used up to 400 pixels. Scenes default to 800 pixels and other item types to 400 pixels.
- context
dictorNone,optional Context dictionary passed to
render().- request
HttpRequestorNone,optional Django request object passed to
render(), if available.
- width
- Returns:
strString-like iframe markup that rich display frontends render as HTML.