Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jan 4, 2018
1 parent b9d9372 commit 8b723f9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
74 changes: 37 additions & 37 deletions examples/DropdownButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,39 @@ export default () => (
Large
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
<Dropdown.Toggle btnSize="md" btnStyle="flat">
Medium
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
<Dropdown.Toggle btnSize="sm" btnStyle="flat">
Small
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
<Dropdown.Toggle btnSize="xs" btnStyle="flat">
Extra Small
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand All @@ -61,9 +61,9 @@ export default () => (
</Button>
<Dropdown.Toggle btnSize="lg" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
Expand All @@ -75,9 +75,9 @@ export default () => (
</Button>
<Dropdown.Toggle btnSize="md" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
Expand All @@ -86,9 +86,9 @@ export default () => (
</Button>
<Dropdown.Toggle btnSize="sm" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
<Dropdown>
Expand All @@ -97,9 +97,9 @@ export default () => (
</Button>
<Dropdown.Toggle btnSize="xs" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand All @@ -111,10 +111,10 @@ export default () => (
&nbsp;All
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>All</MenuItem>
<MenuItem>File</MenuItem>
<MenuItem>IP Address</MenuItem>
<MenuItem>URL</MenuItem>
<MenuItem eventKey="all">All</MenuItem>
<MenuItem eventKey="file">File</MenuItem>
<MenuItem eventKey="ipaddr">IP Address</MenuItem>
<MenuItem eventKey="url">URL</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand All @@ -127,9 +127,9 @@ export default () => (
All devices
</Dropdown.Toggle>
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand All @@ -138,9 +138,9 @@ export default () => (
<Dropdown>
<Dropdown.Toggle btnStyle="link" title="All devices" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand All @@ -150,9 +150,9 @@ export default () => (
<Dropdown dropup>
<Dropdown.Toggle btnStyle="flat" title="Dropdown" />
<Dropdown.Menu>
<MenuItem>Action</MenuItem>
<MenuItem>Another Action</MenuItem>
<MenuItem>Something else here</MenuItem>
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another Action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
Expand Down
8 changes: 4 additions & 4 deletions examples/DropdownMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export default () => (
<Dropdown open onToggle={() => {}}>
<Dropdown.Toggle title="Select an option" />
<Dropdown.Menu>
<MenuItem>
<MenuItem eventKey="1">
Menu item one
</MenuItem>
<MenuItem>
<MenuItem eventKey="2">
Menu item two
</MenuItem>
<MenuItem>
<MenuItem eventKey="3">
Menu item three
</MenuItem>
<MenuItem>
<MenuItem eventKey="4">
Menu item four
</MenuItem>
</Dropdown.Menu>
Expand Down

0 comments on commit 8b723f9

Please sign in to comment.