🗃️ Adds nav link target attribute to docs and schema (#552)

This commit is contained in:
Alicia Sykes 2022-03-26 20:04:51 +00:00
parent b7c84bb1dd
commit a9ae53ef7c
2 changed files with 13 additions and 0 deletions

View File

@ -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)**

View File

@ -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"
}
}
}