forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.23.2 Conflicts: package.json
- Loading branch information
Showing
68 changed files
with
904 additions
and
655 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 |
---|---|---|
|
@@ -9,7 +9,6 @@ lib/ | |
dist/ | ||
!tools/dist/ | ||
docs-built/ | ||
ie8/bundle.js | ||
tmp-bower-repo/ | ||
tmp-docs-repo/ | ||
.babel-cache/ |
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
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 @@ | ||
version: '{build}' | ||
|
||
# Install scripts. (runs after repo cloning) | ||
install: | ||
# Get the latest stable version of io.js | ||
- ps: Install-Product node '' | ||
- npm -g install npm@latest | ||
- set PATH=%APPDATA%\npm;%PATH% | ||
- node --version | ||
- npm --version | ||
- npm install | ||
|
||
# No need for MSBuild on this project | ||
build: off | ||
|
||
test_script: | ||
- npm test |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"PageHeader", | ||
"PageItem", | ||
"Pager", | ||
"Pagination", | ||
"Panel", | ||
"PanelGroup", | ||
"Popover", | ||
|
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,26 @@ | ||
function onSelectAlert(eventKey, href, target) { | ||
alert('Alert from menu item.\neventKey: "' + eventKey + '"\nhref: "' + href + '"'); | ||
} | ||
|
||
function preventDefault() {} | ||
|
||
const MenuItems = ( | ||
<div className="clearfix"> | ||
<ul className="dropdown-menu open"> | ||
<MenuItem header>Header</MenuItem> | ||
<MenuItem onSelect={preventDefault}>link</MenuItem> | ||
<MenuItem divider/> | ||
<MenuItem header>Header</MenuItem> | ||
<MenuItem onSelect={preventDefault}>link</MenuItem> | ||
<MenuItem disabled>disabled</MenuItem> | ||
<MenuItem title="See? I have a title." onSelect={preventDefault}> | ||
link with title | ||
</MenuItem> | ||
<MenuItem eventKey={1} href="#someHref" onSelect={onSelectAlert}> | ||
link that alerts | ||
</MenuItem> | ||
</ul> | ||
</div> | ||
); | ||
|
||
React.render(MenuItems, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const PaginationAdvanced = React.createClass({ | ||
getInitialState() { | ||
return { | ||
activePage: 1 | ||
}; | ||
}, | ||
|
||
handleSelect(event, selectedEvent) { | ||
this.setState({ | ||
activePage: selectedEvent.eventKey | ||
}); | ||
}, | ||
|
||
render() { | ||
return ( | ||
<Pagination | ||
prev={true} | ||
next={true} | ||
first={true} | ||
last={true} | ||
ellipsis={true} | ||
items={20} | ||
maxButtons={5} | ||
activePage={this.state.activePage} | ||
onSelect={this.handleSelect} /> | ||
); | ||
} | ||
}); | ||
|
||
React.render(<PaginationAdvanced />, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const PaginationBasic = React.createClass({ | ||
getInitialState() { | ||
return { | ||
activePage: 1 | ||
}; | ||
}, | ||
|
||
handleSelect(event, selectedEvent){ | ||
this.setState({ | ||
activePage: selectedEvent.eventKey | ||
}); | ||
}, | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<Pagination | ||
bsSize='large' | ||
items={10} | ||
activePage={this.state.activePage} | ||
onSelect={this.handleSelect} /> | ||
<br /> | ||
|
||
<Pagination | ||
bsSize='medium' | ||
items={10} | ||
activePage={this.state.activePage} | ||
onSelect={this.handleSelect} /> | ||
<br /> | ||
|
||
<Pagination | ||
bsSize='small' | ||
items={10} | ||
activePage={this.state.activePage} | ||
onSelect={this.handleSelect} /> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
React.render(<PaginationBasic />, 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
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
Oops, something went wrong.