| ScrollView | R Documentation |
A container whose content can be larger than the widget.
See scroll_view().
Widget -> ScrollView
focusableScroll views can take focus so they can be scrolled with the keyboard even without focusable children.
direction"vertical", "horizontal" or "both".
scrollbarsDraw scroll bars when the content overflows?
offset_x, offset_yScroll offsets in cells (reactive).
viewportThe visible content rectangle (after the last layout).
virtual_sizeSize of the scrollable content: c(width, height).
max_scrollLargest offsets: c(x, y).
Widget$add_class()Widget$ancestors()Widget$animate()Widget$bind()Widget$bind_reactive()Widget$bindings()Widget$blur()Widget$capture_mouse()Widget$clear()Widget$computed_style()Widget$content_height()Widget$content_width()Widget$focus()Widget$format()Widget$get_state()Widget$has_class()Widget$invalidate()Widget$invalidate_paint()Widget$is_displayed()Widget$is_enabled()Widget$layout_differs()Widget$matches()Widget$mount()Widget$on()Widget$post_message()Widget$print()Widget$pseudo_states()Widget$query()Widget$query_one()Widget$refresh()Widget$release_mouse()Widget$remove()Widget$remove_children()Widget$remove_class()Widget$render()Widget$render_lines()Widget$replace()Widget$run_action()Widget$run_process()Widget$run_worker()Widget$set()Widget$set_interval()Widget$set_state()Widget$set_timeout()Widget$toggle_class()Widget$walk()ScrollView$new()Create a scroll view. See scroll_view().
ScrollView$new( ..., direction = "vertical", scrollbars = TRUE, focusable = TRUE, id = NULL, classes = NULL, style = NULL, disabled = FALSE )
...Child widgets.
directionScroll direction.
scrollbarsShow scroll bars?
focusableCan the scroll view itself be focused?
id, classes, style, disabledSee Widget.
ScrollView$default_style()The built-in style.
ScrollView$default_style()
ScrollView$default_bindings()Arrow keys, Page Up/Down and Home/End scroll.
ScrollView$default_bindings()
ScrollView$scroll_to()Scroll to an absolute position (in cells). Positions are clamped to the scrollable range at the next layout.
ScrollView$scroll_to(x = NULL, y = NULL)
x, yNew offsets; NULL keeps the current one.
ScrollView$scroll_by()Scroll relative to the current position.
ScrollView$scroll_by(dx = 0L, dy = 0L)
dx, dyCells to scroll (negative: up/left).
ScrollView$scroll_home()Scroll to the top (and left).
ScrollView$scroll_home()
ScrollView$scroll_end()Scroll to the bottom.
ScrollView$scroll_end()
ScrollView$scroll_into_view()Scroll so that a descendant is fully visible (as far as possible). Uses the last layout; the app re-lays out afterwards.
ScrollView$scroll_into_view(widget)
widgetA descendant widget.
TRUE if the offsets changed.
ScrollView$on_mouse_scroll()The mouse wheel scrolls by three lines. When the view cannot scroll further, the event bubbles to outer scroll views.
ScrollView$on_mouse_scroll(event)
eventA MouseEvent.
ScrollView$action_scroll_up()Scroll one line up.
ScrollView$action_scroll_up()
ScrollView$action_scroll_down()Scroll one line down.
ScrollView$action_scroll_down()
ScrollView$action_scroll_left()Scroll one column left.
ScrollView$action_scroll_left()
ScrollView$action_scroll_right()Scroll one column right.
ScrollView$action_scroll_right()
ScrollView$action_page_up()Scroll one page up.
ScrollView$action_page_up()
ScrollView$action_page_down()Scroll one page down.
ScrollView$action_page_down()
ScrollView$action_scroll_home()Scroll to the top.
ScrollView$action_scroll_home()
ScrollView$action_scroll_end()Scroll to the bottom.
ScrollView$action_scroll_end()
ScrollView$arrange_children()Lay the children out in a virtual area, shifted by the scroll offsets; reserves space for scroll bars when needed.
ScrollView$arrange_children(children, inner, st)
childrenVisible children.
innerContent rectangle.
stComputed style.
ScrollView$layout_descend()Children entirely outside the viewport are not laid out in detail (unless a complete layout is needed, e.g. to scroll a focused widget into view).
ScrollView$layout_descend(rects)
rectsChild rectangles.
ScrollView$child_clip()Children are clipped to the viewport.
ScrollView$child_clip(st)
stComputed style.
ScrollView$paint()Paint background, border and scroll bars.
ScrollView$paint(buffer, area, st)
bufferA ScreenBuffer.
areaVisible part of the region.
stComputed style.
ScrollView$clone()The objects of this class are cloneable with this method.
ScrollView$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.