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...
This commit is contained in:
parent
6c3acb334a
commit
7b358c438d
12
src/_nav.js
12
src/_nav.js
@ -255,18 +255,26 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Disabled',
|
||||||
|
url: '/dashboard',
|
||||||
|
icon: 'icon-ban',
|
||||||
|
attributes: { disabled: true },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Download CoreUI',
|
name: 'Download CoreUI',
|
||||||
url: 'http://coreui.io/react/',
|
url: 'https://coreui.io/react/',
|
||||||
icon: 'icon-cloud-download',
|
icon: 'icon-cloud-download',
|
||||||
class: 'mt-auto',
|
class: 'mt-auto',
|
||||||
variant: 'success',
|
variant: 'success',
|
||||||
|
attributes: { target: '_blank', rel: "noopener" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Try CoreUI PRO',
|
name: 'Try CoreUI PRO',
|
||||||
url: 'http://coreui.io/pro/react/',
|
url: 'https://coreui.io/pro/react/',
|
||||||
icon: 'icon-layers',
|
icon: 'icon-layers',
|
||||||
variant: 'danger',
|
variant: 'danger',
|
||||||
|
attributes: { target: '_blank', rel: "noopener" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user