{"size": 649, "ext": "js", "max_stars_repo_path": "src/core/component/basic/DropdownList.js", "max_stars_repo_name": "yangyxu/zeanium-react-web", "max_stars_repo_stars_event_min_datetime": "2017-05-02T09:14:09.000Z", "max_stars_repo_stars_event_max_datetime": "2018-08-17T02:34:15.000Z", "max_issues_repo_path": "src/core/component/basic/DropdownList.js", "max_issues_repo_name": "yangyxu/zeanium-react-web", "max_issues_repo_issues_event_min_datetime": "2020-05-05T06:02:52.000Z", "max_issues_repo_issues_event_max_datetime": "2020-08-13T04:08:10.000Z", "max_forks_repo_path": "src/core/component/basic/DropdownList.js", "max_forks_repo_name": "yangyxu/zeanium-react-web", "max_forks_repo_forks_event_min_datetime": "2017-05-02T09:14:13.000Z", "max_forks_repo_forks_event_max_datetime": "2017-11-14T09:38:54.000Z"}
{"max_stars_count": 2, "max_issues_count": 5, "max_forks_count": 3, "avg_line_length": 24.037037037, "max_line_length": 85, "alphanum_fraction": 0.656394453}
require('./DropdownList.less');
var React = require('react');
var Dropdown = require('./Dropdown');
var ListView = require('../data/ListView');

module.exports = React.createClass({
	displayName:'DropdownList',
	getDefaultProps: function (){
		return {
			className: '',
			autoFixPosition: true,
			triggerEvent: 'click',
			popoverWidth: 100
		}
	},
	render: function(){
		return (
			<Dropdown {...this.props} className={"zr-dropdown-list " + this.props.className} >
				<div className="dropdown-list-trigger">
					{this.props.children}
				</div>
				<ListView {...this.props} onItemClick={this.__onListItemClick} />
			</Dropdown>
		);
	}
});
