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')
Displays the web page at the URL in an iframe window.
Parameters | Type | Description |
---|---|---|
url | Optional[Union[BaseComponent, str]] | URL of the web page. |
full_height | Optional[Union[BaseComponent, bool]] | If true, the element takes up all the vertical free space. The element is set to a minimum height of 400 pixels. |
max_width | Optional[Union[BaseComponent, float]] | Maximum width of the element in pixels, must be greater than min_width. |
min_width | Optional[Union[BaseComponent, float]] | Minimum width of the element in pixels. Takes priority over max_width. |
ratio | Optional[Union[BaseComponent, List[Union[BaseComponent, float]]]] | An array of two numbers that sets the relative dimensions of the sides: width (first number) to height (second number). Not valid if full_height=true. |
hint | Optional[Any] | Hint text. |
label | Optional[Any] | Label above the component. |
validation | Optional[BaseComponent] | Validation based on condition. |