Tabbed content. See tabs().
Super class
Widget -> Tabs
Active bindings
activeIndex of the active tab (assign to switch).
active_tabThe active TabPane, or
NULL.tab_countNumber of tabs.
Methods
Inherited methods
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$focus()Widget$format()Widget$get_state()Widget$has_class()Widget$invalidate()Widget$invalidate_paint()Widget$is_displayed()Widget$is_enabled()Widget$layout_descend()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()
Tabs$new()
Create tabs. See tabs().
Usage
Tabs$new(
...,
active = 1L,
id = NULL,
classes = NULL,
style = NULL,
disabled = FALSE
)Tabs$default_bindings()
Left/Right switch tabs when the bar is focused; Ctrl+PageUp / Ctrl+PageDown switch from anywhere inside.
Tabs$add_tab()
Add a tab at the end.
Arguments
paneA
tab()(or any widget, wrapped in a tab named after its id).activateMake it the active tab?
Tabs$paint()
Paint the tab bar.
Arguments
bufferA ScreenBuffer.
areaVisible part of the region.
stComputed style.