{"action":"closed","issue":{"url":"https://api.github.com/repos/tomkp/react-calendar-pane/issues/1","labels_url":"https://api.github.com/repos/tomkp/react-calendar-pane/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tomkp/react-calendar-pane/issues/1/comments","events_url":"https://api.github.com/repos/tomkp/react-calendar-pane/issues/1/events","html_url":"https://github.com/tomkp/react-calendar-pane/issues/1","id":106887739,"number":1,"title":"Feature Request: Highlight arbitrary days","user":{"login":"ygt-mikekchar","id":3168656,"avatar_url":"https://avatars.githubusercontent.com/u/3168656?v=3","gravatar_id":"","url":"https://api.github.com/users/ygt-mikekchar","html_url":"https://github.com/ygt-mikekchar","followers_url":"https://api.github.com/users/ygt-mikekchar/followers","following_url":"https://api.github.com/users/ygt-mikekchar/following{/other_user}","gists_url":"https://api.github.com/users/ygt-mikekchar/gists{/gist_id}","starred_url":"https://api.github.com/users/ygt-mikekchar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygt-mikekchar/subscriptions","organizations_url":"https://api.github.com/users/ygt-mikekchar/orgs","repos_url":"https://api.github.com/users/ygt-mikekchar/repos","events_url":"https://api.github.com/users/ygt-mikekchar/events{/privacy}","received_events_url":"https://api.github.com/users/ygt-mikekchar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T00:00:16Z","updated_at":"2015-10-23T03:56:44Z","closed_at":"2015-10-23T03:56:44Z","body":"Hi.  I've been playing with this for the last day or so.  It's the most simple and sensible react calendar component out there.  Thanks!\r\n\r\nWe need some extra functionality, so I've forked and will add it to my branch.  If you are interested, feel free to merge any of it.  I'm not sure if you want pull requests, so I'll just to the diff in my branch.\r\n\r\nThe following:\r\nhttps://github.com/tomkp/react-calendar-pane/compare/master...ygt-mikekchar:day-classes\r\n\r\nImplements the ability to arbitrarily highlight days based on a callback.  It works like:\r\n\r\n```\r\nlet dayClasses = function(date) {\r\n    if (some_test_on(date)) {\r\n        return ['some', 'interesting', 'classes']\r\n    }\r\n    return []\r\n}\r\n\r\nreturn (\r\n    <Calendar onSelect={this.onSelect} dayClasses={dayClasses}/>\r\n);\r\n````\r\n\r\nI've updated the demo to highlight weekends using this facility."}}