Skip to content

MobileTabSwitcher

Unofficial

Tab switcher component for navigating between open tabs on mobile.

Import:

import type { MobileTabSwitcher } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface MobileTabSwitcher

Properties

PropertyTypeDescription
appAppReference to the app.
cacheDirstringDirectory path for cached tab previews.
containerElHTMLDivElementContainer element for the tab switcher.
innerScrollElHTMLDivElementInner scrollable element containing tab previews.
isVisiblebooleanWhether the tab switcher is currently visible.
requestRenderDebouncer<[], void>Debounced function to re-render the tab switcher.
scrollElHTMLDivElementScroll container element.
tabPreviewLookupWeakMap<object, unknown>Weak map caching tab preview images by leaf reference.

Methods

MethodReturnsDescription
close()voidClose the currently selected tab.
hide()voidHide the tab switcher UI.
onLayoutChange()voidHandle workspace layout changes by updating the tab list.
render()voidRender the tab switcher content.
setupCacheDir()Promise<void>Set up the directory for caching tab preview images.
show()Promise<void>Show the tab switcher UI.
showTabManagementMenu(e)voidDisplay the tab management context menu.

Links to this page: