Scroll the page to the specified scope :param str scope: Target scope. Default is the current scope. :param str position: Where to place the scope in the visible area of the page. Available value: * ``'top'`` : Keep the scope at the top of the visible area of the page *
(scope: str = None, position: str = Position.TOP)
| 338 | |
| 339 | |
| 340 | def scroll_to(scope: str = None, position: str = Position.TOP): |
| 341 | """ |
| 342 | Scroll the page to the specified scope |
| 343 | |
| 344 | :param str scope: Target scope. Default is the current scope. |
| 345 | :param str position: Where to place the scope in the visible area of the page. Available value: |
| 346 | |
| 347 | * ``'top'`` : Keep the scope at the top of the visible area of the page |
| 348 | * ``'middle'`` : Keep the scope at the middle of the visible area of the page |
| 349 | * ``'bottom'`` : Keep the scope at the bottom of the visible area of the page |
| 350 | """ |
| 351 | if scope is None: |
| 352 | scope = get_scope() |
| 353 | send_msg('output_ctl', dict(scroll_to=scope2dom(scope), position=position)) |
| 354 | |
| 355 | |
| 356 | def _get_output_spec(type, scope, position, **other_spec): |
no test coverage detected
searching dependent graphs…