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

Property Type Description
app App Reference to the app.
cacheDir string Directory path for cached tab previews.
containerEl HTMLDivElement Container element for the tab switcher.
innerScrollEl HTMLDivElement Inner scrollable element containing tab previews.
isVisible boolean Whether the tab switcher is currently visible.
requestRender Debouncer<[], void> Debounced function to re-render the tab switcher.
scrollEl HTMLDivElement Scroll container element.
tabPreviewLookup WeakMap<object, unknown> Weak map caching tab preview images by leaf reference.

Methods

Method Returns Description
close() void Close the currently selected tab.
hide() void Hide the tab switcher UI.
onLayoutChange() void Handle workspace layout changes by updating the tab list.
render() void Render 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) void Display the tab management context menu.

Links to this page: