From 72df9c7b29545a6770973204a1c78a0edba36aa4 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 20 Apr 2025 14:02:20 -0600 Subject: [PATCH] Add type argument for global.apis.ui.addToolsPage --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b6cef70..0965806 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ Use `setBig` and `getBig` for storing data except for very short string or numbe `global.apis.ui.`: -* `addToolsPage(page, title, id = "", description = "", cardTitle = "", icon = "")`: Add a page to the Tools screen. See examples/basic-demo for example usage. +* `addToolsPage(page, title, id = "", description = "", cardTitle = "", icon = "", type = "page")`: Add a page to the Tools screen. See examples/basic-demo for example usage. If `type` is set to "function", the `page` argument will be run as a function and will not be expected to return a page component. * `showProgressSpinner(title, text = "", subtitle = "")`: Show a Framework7 notification with a loading icon. * `hideProgressSpinner()`: hide the UI element created by `showProgressSpinner`. * `openInternalWebBrowser(url)`: Open a web browser UI, navigating to the URL. The browser has forward/back/close buttons.