Function: pushHistoryEntry()
pushHistoryEntry(
entry):void
Defined in: packages/extension-api/src/extension-api.d.ts:5258
Push a new entry onto Podman Desktop's global back/forward navigation history. Call this whenever the user navigates to a new page within the extension's own webview (e.g. a SPA route change), so that the global Back/Forward buttons can step through it.
Parameters
entry
the entry to push.
Returns
void
Example
import { navigation } from '@podman-desktop/api';
navigation.pushHistoryEntry({ id: '/models/llama3', label: 'Model: llama3' });