forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[added] Example for collapsable Navbar in docs.
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var navbarInstance = ( | ||
<Navbar brand="React-Bootstrap" inverse toggleNavKey={0}> | ||
<Nav right eventKey={0}> {/* This is the eventKey referenced */} | ||
<NavItem eventKey={1} href="#">Link</NavItem> | ||
<NavItem eventKey={2} href="#">Link</NavItem> | ||
<DropdownButton eventKey={3} title="Dropdown"> | ||
<MenuItem eventKey="1">Action</MenuItem> | ||
<MenuItem eventKey="2">Another action</MenuItem> | ||
<MenuItem eventKey="3">Something else here</MenuItem> | ||
<MenuItem divider /> | ||
<MenuItem eventKey="4">Separated link</MenuItem> | ||
</DropdownButton> | ||
</Nav> | ||
</Navbar> | ||
); | ||
|
||
React.render(navbarInstance, mountNode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters