-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
106 additions
and
3 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,73 @@ | ||
import React from 'react'; | ||
import Section from './Section'; | ||
import Dropdown, { MenuItem } from '../src'; | ||
import styles from './index.styl'; | ||
|
||
export default () => ( | ||
<Section className="row-md-5 row-xl-5"> | ||
<div className={styles.sectionGroup}> | ||
<h3>Dropdown In Dropdown</h3> | ||
<Dropdown> | ||
<Dropdown.Toggle> | ||
Select an option | ||
</Dropdown.Toggle> | ||
<Dropdown.Menu style={{ minWidth: 150 }}> | ||
<MenuItem eventKey="1" className="clearfix"> | ||
Menu item one | ||
<Dropdown | ||
style={{ float: 'right' }} | ||
onClick={event => { | ||
event.stopPropagation(); | ||
}} | ||
> | ||
<Dropdown.Toggle | ||
noCaret | ||
btnStyle="flat" | ||
btnSize="sm" | ||
compact | ||
style={{ | ||
padding: 0, | ||
minWidth: 24 | ||
}} | ||
> | ||
<i className="fa fa-fw fa-ellipsis-h" /> | ||
</Dropdown.Toggle> | ||
<Dropdown.Menu> | ||
<MenuItem header>Action</MenuItem> | ||
<MenuItem>Rename</MenuItem> | ||
<MenuItem>Delete</MenuItem> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</MenuItem> | ||
<MenuItem eventKey="2" className="clearfix"> | ||
Menu item two | ||
<Dropdown | ||
style={{ float: 'right' }} | ||
onClick={event => { | ||
event.stopPropagation(); | ||
}} | ||
> | ||
<Dropdown.Toggle | ||
noCaret | ||
btnStyle="flat" | ||
btnSize="sm" | ||
compact | ||
style={{ | ||
padding: 0, | ||
minWidth: 24 | ||
}} | ||
> | ||
<i className="fa fa-fw fa-ellipsis-h" /> | ||
</Dropdown.Toggle> | ||
<Dropdown.Menu> | ||
<MenuItem header>Action</MenuItem> | ||
<MenuItem>Rename</MenuItem> | ||
<MenuItem>Delete</MenuItem> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</MenuItem> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</div> | ||
</Section> | ||
); |
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