Skip to content

Commit 7b358c4

Browse files
committed
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...
1 parent 6c3acb3 commit 7b358c4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/_nav.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -255,18 +255,26 @@ export default {
255255
},
256256
],
257257
},
258+
{
259+
name: 'Disabled',
260+
url: '/dashboard',
261+
icon: 'icon-ban',
262+
attributes: { disabled: true },
263+
},
258264
{
259265
name: 'Download CoreUI',
260-
url: 'http://coreui.io/react/',
266+
url: 'https://coreui.io/react/',
261267
icon: 'icon-cloud-download',
262268
class: 'mt-auto',
263269
variant: 'success',
270+
attributes: { target: '_blank', rel: "noopener" },
264271
},
265272
{
266273
name: 'Try CoreUI PRO',
267-
url: 'http://coreui.io/pro/react/',
274+
url: 'https://coreui.io/pro/react/',
268275
icon: 'icon-layers',
269276
variant: 'danger',
277+
attributes: { target: '_blank', rel: "noopener" },
270278
},
271279
],
272280
};

0 commit comments

Comments
 (0)