IframeViewV1

toloka.client.project.template_builder.view.IframeViewV1 | Source code

IframeViewV1(
self,
url: Optional[Union[BaseComponent, str]] = None,
*,
full_height: Optional[Union[BaseComponent, bool]] = None,
max_width: Optional[Union[BaseComponent, float]] = None,
min_width: Optional[Union[BaseComponent, float]] = None,
ratio: Optional[Union[BaseComponent, List[Union[BaseComponent, float]]]] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A frame displaying a web page.

For more information, see view.iframe.

Parameters description

ParametersTypeDescription
urlOptional[Union[BaseComponent, str]]

The URL of the web page.

full_heightOptional[Union[BaseComponent, bool]]

If True, the component takes up all the vertical free space. Note, that the minimum height required by the component is 400 pixels.

max_widthOptional[Union[BaseComponent, float]]

The maximum width of the component in pixels.

min_widthOptional[Union[BaseComponent, float]]

The minimum width of the component in pixels. It takes priority over the max_width.

ratioOptional[Union[BaseComponent, List[Union[BaseComponent, float]]]]

A list with the aspect ratio of the component. Specify the relative width first and then the relative height. This setting is not used if full_height=True.

hintOptional[Any]

A hint text.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming