Skip to content
JavaScript CSS
Branch: master
Clone or download
dependabot-preview and afc163 Update bootstrap requirement from ~3.4.0 to ~4.3.1
Updates the requirements on [bootstrap](https://github.com/twbs/bootstrap) to permit the latest version.
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](twbs/bootstrap@v3.4.0...v4.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 993fad0 Jul 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Add placement top-right and bottom-right May 11, 2016
examples supports overlay callback (#53) Dec 28, 2018
src fix onClick not found when use callback Dec 28, 2018
tests supports overlay callback (#53) Dec 28, 2018
.editorconfig first commit May 30, 2015
.gitignore
.travis.yml Convert to es6 class syntax Apr 18, 2017
HISTORY.md bump 2.4.0 Dec 28, 2018
LICENSE.md Added LICENSE.md Dec 21, 2016
README.md Update README.md: additional props Jan 25, 2019
index.d.ts Add type definition May 8, 2019
index.js release 1.0.0 Jun 8, 2015
package.json Update bootstrap requirement from ~3.4.0 to ~4.3.1 Jul 18, 2019

README.md

rc-dropdown

react dropdown component

NPM version build status Test coverage gemnasium deps node version npm download

Screenshot

Example

online example: http://react-component.github.io/dropdown/examples/

install

rc-dropdown

Usage

var Dropdown = require('rc-dropdown');
// use dropdown

API

props

                                       
name type default description
overlayClassName String additional css class of root dom node
openClassName String`${prefixCls}-open`className of trigger when dropdown is opened
prefixCls String rc-tooltip prefix class name
transitionName String dropdown menu's animation css class name
animation String part of dropdown menu's animation css class name
onVisibleChange Function call when visible is changed
visible boolean whether tooltip is visible
defaultVisible boolean whether tooltip is visible initially
overlay rc-menu rc-menu element
onOverlayClick function(e) call when overlay is clicked
minOverlayWidthMatchTrigger booleantrue (false when set alignPoint)whether overlay's width must not be less than trigger's

Note: Additional props are passed into the underlying rc-trigger component. This can be useful for example, to display the dropdown in a separate portal-driven window via the getDocument() rc-trigger prop.

Development

npm install
npm start

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-dropdown is released under the MIT license.

You can’t perform that action at this time.