Shimoku docs
Ask or search…
K
Comment on page

iFrame

An IFrame (Inline Frame) is an HTML document embedded inside another HTML document on a website. The IFrame HTML element is often used to insert content from another source or monitor a website (or more than one).

The method to use

The method is s.plt.iframe()
It must contain the following input variables:
url: str
order: int
And accepts the following input variables as optional:
height: int
cols_size: Optional[int]
padding: Optional[str]

Video demonstration of the HTML iFrame

The iFrame settings and usage.

Examples

1. Default configuration

This one is configured to use the website https://teamaspar.com
s.plt.iframe(url='https://teamaspar.com', order=0)
The result is:
The iFrame is in the default configuration.

2. Title for the iframe, size and padding

You can set a title for every site to monitor:
s.plt.iframe(
url='https://teamaspar.com',
order=0, cols_size=8,
padding='0,0,0,3'
)
The result is:
Note the space before the component using padding='0,0,0,3', and size with cols_size=8.
Changing the Menu Path The menu_path can be modified.
It is possible to use any number of rows.