Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:card_file_box: Adds nav link target attribute to docs and schema (#552)

Alicia Sykesa9ae53ef7ce0
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"
}
}
}