From 204274ff2f37594928a9bbf11457ac3f02cd9c4d Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 10:15:59 +0000 Subject: [PATCH] Add navigation controls example --- how-to/workspace-platform-starter/CHANGELOG.md | 1 + how-to/workspace-platform-starter/README.md | 4 ++-- .../snapshots/developer.snapshot.fin.json | 18 ++++++++++++++++-- .../public/manifest.fin.json | 5 ++++- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/how-to/workspace-platform-starter/CHANGELOG.md b/how-to/workspace-platform-starter/CHANGELOG.md index c6c29fa7ef..a96ea87dcc 100644 --- a/how-to/workspace-platform-starter/CHANGELOG.md +++ b/how-to/workspace-platform-starter/CHANGELOG.md @@ -4,6 +4,7 @@ - Added support for dock submenus - Added support for customizing the taskbar icon for the splash screen window +- Added an example of navigating content using navigation controls. Enabled through default window options in the main [manifest.fin.json](./public/manifest.fin.json) and in our developer docs snapshot [developer.snapshot.fin.json](./public/common/snapshots/developer.snapshot.fin.json) ## v16.1.0 diff --git a/how-to/workspace-platform-starter/README.md b/how-to/workspace-platform-starter/README.md index aeb63286bc..04ab6bcb5e 100644 --- a/how-to/workspace-platform-starter/README.md +++ b/how-to/workspace-platform-starter/README.md @@ -12,8 +12,8 @@ This how to provides an example of a configurable workspace platform. Please use Launch pre-configured examples to get an idea of what a customized workspace platform can look like. You can launch both of them if you would like to see OpenFin Workspace's multi platform support. -| Example | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Example | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | [Workspace Platform Starter Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fworkspace-platform-starter%2Fmanifest.fin.json) | This is an example of a customized workspace with a light/dark theme, no authentication and some configured options. | | [Second Workspace Platform Starter Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fworkspace-platform-starter%2Fsecond.manifest.fin.json) | This second instance includes the use of a demo authentication flow and has additional browser buttons configured. It also takes advantage of the built-in light/dark theme support. | | [Third Workspace Platform Starter Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fworkspace-platform-starter%2Fthird.manifest.fin.json) | This third instance has a light theme and is configured to use an fdc3 1.2 app directory that includes a few FDC3 helper tools to help get you up and running. | diff --git a/how-to/workspace-platform-starter/public/common/snapshots/developer.snapshot.fin.json b/how-to/workspace-platform-starter/public/common/snapshots/developer.snapshot.fin.json index cc5d15aff4..9c2b2e8979 100644 --- a/how-to/workspace-platform-starter/public/common/snapshots/developer.snapshot.fin.json +++ b/how-to/workspace-platform-starter/public/common/snapshots/developer.snapshot.fin.json @@ -28,7 +28,14 @@ "componentState": { "url": "https://developers.openfin.co/of-docs/docs/workspace-overview", "componentName": "view", - "interop": {} + "interop": {}, + "workspacePlatform": { + "browserNavigationButtons": { + "back": true, + "forward": true, + "reload": true + } + } }, "title": "Workspace Docs" } @@ -55,7 +62,14 @@ "componentState": { "url": "https://developer.openfin.co/docs/javascript/stable/index.html", "componentName": "view", - "interop": {} + "interop": {}, + "workspacePlatform": { + "browserNavigationButtons": { + "back": true, + "forward": true, + "reload": true + } + } }, "title": "OpenFin API Docs" } diff --git a/how-to/workspace-platform-starter/public/manifest.fin.json b/how-to/workspace-platform-starter/public/manifest.fin.json index 1ac3843834..e9ef70adf1 100644 --- a/how-to/workspace-platform-starter/public/manifest.fin.json +++ b/how-to/workspace-platform-starter/public/manifest.fin.json @@ -355,7 +355,10 @@ "title": "Browser Starter", "favicon": "http://localhost:8080/favicon.ico", "newTabUrl": "http://localhost:8080/common/views/platform/new-tab/new-tab.html", - "newPageUrl": "http://localhost:8080/common/views/platform/new-tab/new-tab.html" + "newPageUrl": "http://localhost:8080/common/views/platform/new-tab/new-tab.html", + "navigationButtons": { + "enabled": true + } } }, "defaultViewOptions": {