From a9ae53ef7ce0a551ce9971e489365d1d789bd5ae Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 26 Mar 2022 20:04:51 +0000 Subject: [PATCH] :card_file_box: Adds nav link target attribute to docs and schema (#552) --- docs/configuring.md | 1 + src/utils/ConfigSchema.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/configuring.md b/docs/configuring.md index 4e052c4a..2e4f681c 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -77,6 +77,7 @@ The following file provides a reference of all supported configuration options. --- | --- | --- | --- **`title`** | `string` | Required | The text to display on the link button **`path`** | `string` | Required | The URL to navigate to when clicked. Can be relative (e.g. `/about`) or absolute (e.g. `https://example.com` or `http://192.168.1.1`) +**`target`** | `string` | _Optional_ | The opening method (external links only). Can be either `newtab`, `sametab`, `top` or `parent`. Defaults to `newtab` **[⬆️ Back to Top](#configuring)** diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json index 312fafc8..0168b4dd 100644 --- a/src/utils/ConfigSchema.json +++ b/src/utils/ConfigSchema.json @@ -36,6 +36,18 @@ }, "path": { "type": "string" + }, + "target": { + "title": "Opening Method", + "type": "string", + "enum": [ + "newtab", + "sametab", + "parent", + "top" + ], + "default": "newtab", + "description": "Where / how the item is opened when it's clicked" } } }