{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/859","repository_url":"https://api.github.com/repos/JedWatson/react-select","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/859/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/859/events","html_url":"https://github.com/JedWatson/react-select/pull/859","id":144938366,"number":859,"title":"[Enhancement] Add `renderMenu` property for custom Menu rendering","user":{"login":"bvaughn","id":29597,"avatar_url":"https://avatars.githubusercontent.com/u/29597?v=3","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-31T15:43:27Z","updated_at":"2016-03-31T17:10:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JedWatson/react-select/pulls/859","html_url":"https://github.com/JedWatson/react-select/pull/859","diff_url":"https://github.com/JedWatson/react-select/pull/859.diff","patch_url":"https://github.com/JedWatson/react-select/pull/859.patch"},"body":"This PR is similar to the approach mentioned in PR #763 but with an improvement for windowing libraries that avoids creating all of the menu options when rendering.\r\n\r\nThe size of the PR is mostly due to the fact that it contains an updated dist/build as well as a JSON data file of the largest 1,000 cities in Europe (used to demonstrate custom menu windowing). The actual changes to the `Select` component were very minimal (~70 lines).\r\n\r\nI've also added [react-virtualized](https://github.com/bvaughn/react-virtualized) to the `devDependencies` (not `dependencies`) so it could be used in the example to demonstrate a more efficient way of rendering select menus with large amounts of data. (If this PR gets merged, or one like it, I plan to release a small adapter library with a single HOC that provides the react-virtualized drop-down menu automatically and passes through other props to `Select`.)\r\n\r\nAll tests and linting pass. The [README has been updated](https://github.com/bvaughn/react-select/#effeciently-rendering-large-lists-with-windowing). 2 new tests added for `renderMenu` prop. A demo of this functionality can be seen here (\"World's Largest Cities\"): https://rawgit.com/bvaughn/react-select/master/examples/dist/index.html"},"comment":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/comments/204026446","html_url":"https://github.com/JedWatson/react-select/pull/859#issuecomment-204026446","issue_url":"https://api.github.com/repos/JedWatson/react-select/issues/859","id":204026446,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T17:10:04Z","updated_at":"2016-03-31T17:10:04Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5617307/badge)](https://coveralls.io/builds/5617307)\n\nChanges Unknown when pulling **9e11ce9dbd52e16ccfb615ac5700981c750e273d on bvaughn:master** into ** on JedWatson:master**.\n"}}