From 7b358c438d913ccf6423c47faca87fc40e3a9b55 Mon Sep 17 00:00:00 2001 From: xidedix Date: Wed, 7 Nov 2018 17:00:26 +0100 Subject: [PATCH] feat(SidebarNav): navLink `attributes` - optional JS object with valid JS API naming - starting with `@coreui/coreui`, `@coreui/react` `v2.1.0` and up - valid attributes: `rel`, `target`, `hidden`, `disabled`, etc... --- src/_nav.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/_nav.js b/src/_nav.js index 1d56d46..2a6cac9 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -255,18 +255,26 @@ export default { }, ], }, + { + name: 'Disabled', + url: '/dashboard', + icon: 'icon-ban', + attributes: { disabled: true }, + }, { name: 'Download CoreUI', - url: 'http://coreui.io/react/', + url: 'https://coreui.io/react/', icon: 'icon-cloud-download', class: 'mt-auto', variant: 'success', + attributes: { target: '_blank', rel: "noopener" }, }, { name: 'Try CoreUI PRO', - url: 'http://coreui.io/pro/react/', + url: 'https://coreui.io/pro/react/', icon: 'icon-layers', variant: 'danger', + attributes: { target: '_blank', rel: "noopener" }, }, ], };