{"action":"opened","issue":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/13","labels_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/13/comments","events_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/13/events","html_url":"https://github.com/intljusticemission/react-big-calendar/issues/13","id":120284068,"number":13,"title":"Resource view, feature request","user":{"login":"rafsoaken","id":1782,"avatar_url":"https://avatars.githubusercontent.com/u/1782?v=3","gravatar_id":"","url":"https://api.github.com/users/rafsoaken","html_url":"https://github.com/rafsoaken","followers_url":"https://api.github.com/users/rafsoaken/followers","following_url":"https://api.github.com/users/rafsoaken/following{/other_user}","gists_url":"https://api.github.com/users/rafsoaken/gists{/gist_id}","starred_url":"https://api.github.com/users/rafsoaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafsoaken/subscriptions","organizations_url":"https://api.github.com/users/rafsoaken/orgs","repos_url":"https://api.github.com/users/rafsoaken/repos","events_url":"https://api.github.com/users/rafsoaken/events{/privacy}","received_events_url":"https://api.github.com/users/rafsoaken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T22:22:14Z","updated_at":"2015-12-03T22:22:14Z","closed_at":null,"body":"The component is awesome - the only thing missing for me is a resource view. \r\n\r\nIt is often the case to add resources to a calendar event: Eg. a car vendor could add a sales agent and a car model to the event. Now it is easy enough to render the event contents with custom color and text, but events will still be mixed up in the Week/Day columns.\r\n\r\nI would like a Week like view, but instead of the week days it would show resource names, displaying the resources' events in the respective columns.\r\n\r\nThe api/props can be very simple. Just set a \r\n   resourceAccessor, e.g. resourceAccessor = 'salesguy_id'\r\n   the list of resources, e.g. resources = {  [{id: 1, name: 'John'}, {id:2, name: 'Linda'}]  }\r\n   a function to test membership: resourceMembership = (resource, event) => { return resource.id == event.salesguy_id; }   \r\n   a renderable node (?) as resource column headers, eg. resourceHeader = (resource) => resource.name\r\n\r\nLike this we could also easily switch between different resource categories - eg sales agents and available car models, calling that \"Events by sales agent view, Events by available cars\".\r\nAny resource restriction rules are handled by the application, but the display can easily be handled by the calendar.\r\n\r\nInterested to know what you think about it,\r\nraf \r\n\r\n \r\n\r\n"}}