8000 Merge pull request #45 from coreui/dev-vnext · Frabat/coreui-react@f8346f6 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f8346f6

Browse files
authored
Merge pull request coreui#45 from coreui/dev-vnext
v2.1.0
2 parents 8693743 + dfda836 commit f8346f6

File tree

6 files changed

+343
-251
lines changed

6 files changed

+343
-251
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
### [@coreui/react](https://coreui.io/) changelog
22

3+
##### `v2.1.0`
4+
- feat(SidebarNav): navLink `attributes` - optional JS object with valid JS API naming:
5+
- valid attributes: `rel`, `target`, `hidden`, `disabled`, etc...
6+
- item example:
7+
```json
8+
{
9+
name: 'Try CoreUI PRO',
10+
url: 'https://coreui.io/pro/react/',
11+
icon: 'cui-layers icons',
12+
variant: 'danger',
13+
attributes: { target: '_blank', rel: "noopener" },
14+
},
15+
```
16+
- update `@coreui/coreui` to `2.1.0` - sidebar-nav-link-disabled-*
17+
- chore: update `react-perfect-scrollbar` to `1.4.2`
18+
- chore: update `eslint` to `5.8.0`
19+
- chore: update `react` to `16.6.0`
20+
- chore: update `react-dom` to `16.6.0`
21+
- chore(demo): style.css update to `@coreui/coreui v2.1.0`, navLink `disabled` example
22+
323
##### `v2.0.9`
424
- feat(Sidebar): badge on parent dropdown - thanks @jeff-nz
525
- fix(SidebarNav): handleClick() target->currentTarget open

demo/src/_nav.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@ export default {
88
variant: 'info',
99
text: 'NEW'
1010
}
11-
}
11+
},
12+
{
13+
name: 'Disabled',
14+
url: '/dashboard',
15+
icon: 'cui-ban icons',
16+
attributes: { disabled: true },
17+
},
18+
{
19+
name: 'Download CoreUI',
20+
url: 'https://coreui.io/react/',
21+
icon: 'cui-cloud-download icons',
22+
class: 'mt-auto',
23+
variant: 'success',
24+
attributes: { target: '_blank', rel: "noopener" },
25+
},
26+
{
27+
name: 'Try CoreUI PRO',
28+
url: 'https://coreui.io/pro/react/',
29+
icon: 'cui-layers icons',
30+
variant: 'danger',
31+
attributes: { target: '_blank', rel: "noopener" },
32+
},
1233
]
1334
};

0 commit comments

Comments
 (0)
0