Skip to main content

navigateTo

Navigate to a new page.

Parameters

Note: Each page is a separate WebView. If opening a page using the file:// protocol, be mindful of the absolute path issue in the page parameter.

interface Data {
page: string;
title?: string;
}
NameTypeRequiredDefaultDescription
pagenumberYesPath of the new page
titlestringNoText for the navigation bar of the new page

Example

import { navigateTo } from "minip-bridge";

navigateTo({
page: "index.html?page=settings",
title: "Settings",
});