{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/3321","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/3321/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/3321/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/3321/events","html_url":"https://github.com/primefaces/primeng/issues/3321","id":240920742,"node_id":"MDU6SXNzdWUyNDA5MjA3NDI=","number":3321,"title":"Date template for Calendar","user":{"login":"dannyrevenant","id":3352346,"node_id":"MDQ6VXNlcjMzNTIzNDY=","avatar_url":"https://avatars0.githubusercontent.com/u/3352346?v=4","gravatar_id":"","url":"https://api.github.com/users/dannyrevenant","html_url":"https://github.com/dannyrevenant","followers_url":"https://api.github.com/users/dannyrevenant/followers","following_url":"https://api.github.com/users/dannyrevenant/following{/other_user}","gists_url":"https://api.github.com/users/dannyrevenant/gists{/gist_id}","starred_url":"https://api.github.com/users/dannyrevenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannyrevenant/subscriptions","organizations_url":"https://api.github.com/users/dannyrevenant/orgs","repos_url":"https://api.github.com/users/dannyrevenant/repos","events_url":"https://api.github.com/users/dannyrevenant/events{/privacy}","received_events_url":"https://api.github.com/users/dannyrevenant/received_events","type":"User","site_admin":false},"labels":[{"id":312160662,"node_id":"MDU6TGFiZWwzMTIxNjA2NjI=","url":"https://api.github.com/repos/primefaces/primeng/labels/new%20feature","name":"new feature","color":"159818","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/primefaces/primeng/milestones/72","html_url":"https://github.com/primefaces/primeng/milestone/72","labels_url":"https://api.github.com/repos/primefaces/primeng/milestones/72/labels","id":2696123,"node_id":"MDk6TWlsZXN0b25lMjY5NjEyMw==","number":72,"title":"4.2.RC1","description":"","creator":{"login":"cagataycivici","id":686247,"node_id":"MDQ6VXNlcjY4NjI0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/686247?v=4","gravatar_id":"","url":"https://api.github.com/users/cagataycivici","html_url":"https://github.com/cagataycivici","followers_url":"https://api.github.com/users/cagataycivici/followers","following_url":"https://api.github.com/users/cagataycivici/following{/other_user}","gists_url":"https://api.github.com/users/cagataycivici/gists{/gist_id}","starred_url":"https://api.github.com/users/cagataycivici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagataycivici/subscriptions","organizations_url":"https://api.github.com/users/cagataycivici/orgs","repos_url":"https://api.github.com/users/cagataycivici/repos","events_url":"https://api.github.com/users/cagataycivici/events{/privacy}","received_events_url":"https://api.github.com/users/cagataycivici/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":59,"state":"closed","created_at":"2017-08-11T10:29:18Z","updated_at":"2017-09-06T06:45:55Z","due_on":"2017-08-28T07:00:00Z","closed_at":"2017-09-06T06:45:55Z"},"comments":18,"created_at":"2017-07-06T11:03:37Z","updated_at":"2018-09-28T10:49:23Z","closed_at":"2017-08-25T08:24:32Z","author_association":"NONE","body":"**I'm submitting a ...**\r\n\r\n[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nI recently switched from ngbootstrap to primeng, and everything is great except being able to highlight specific dates in any given week or month in the calendar, e.g. every friday and every monday for the next 2 weeks, then just every monday between 26/7/2017 and 24/12/2017, then nothing after that.\r\n\r\nThe way this is handled in ngbootstrap is by having a dayTemplate `<ng-template>` which is called for each day, and allows the adding of a style class in the template, so you'd have for example\r\n\r\n`<p-calendar  [dayTemplate]=\"customDay\" ...></p-calendar>`\r\n\r\nand then\r\n\r\n```\r\n<ng-template #customDay let-date=\"date\">\r\n    <span [class.highlightedDay]=\"isHighlightedDay(date)\">\r\n        {{ date.day }}\r\n    </span>\r\n</ng-template>\r\n```\r\n\r\nand with `isHighlightedDay()` as a method on the class component that the calendar is mounted on, which is called every time a month view is rendered.\r\n\r\nI know this isn't the way things are handled in primeng, just trying to illustrate with an example what ngbootstrap do, as this is the only functionality from their library that I still have to use after switching over."},"comment":{"url":"https://api.github.com/repos/primefaces/primeng/issues/comments/425398516","html_url":"https://github.com/primefaces/primeng/issues/3321#issuecomment-425398516","issue_url":"https://api.github.com/repos/primefaces/primeng/issues/3321","id":425398516,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM5ODUxNg==","user":{"login":"sarojmaharjan99999","id":11772100,"node_id":"MDQ6VXNlcjExNzcyMTAw","avatar_url":"https://avatars2.githubusercontent.com/u/11772100?v=4","gravatar_id":"","url":"https://api.github.com/users/sarojmaharjan99999","html_url":"https://github.com/sarojmaharjan99999","followers_url":"https://api.github.com/users/sarojmaharjan99999/followers","following_url":"https://api.github.com/users/sarojmaharjan99999/following{/other_user}","gists_url":"https://api.github.com/users/sarojmaharjan99999/gists{/gist_id}","starred_url":"https://api.github.com/users/sarojmaharjan99999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarojmaharjan99999/subscriptions","organizations_url":"https://api.github.com/users/sarojmaharjan99999/orgs","repos_url":"https://api.github.com/users/sarojmaharjan99999/repos","events_url":"https://api.github.com/users/sarojmaharjan99999/events{/privacy}","received_events_url":"https://api.github.com/users/sarojmaharjan99999/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T10:49:23Z","updated_at":"2018-09-28T10:49:23Z","author_association":"NONE","body":"@mlc-mlapis  Hello sorry to disturb you once again, there are disabled dates and disabled days features on prime framework but is there any way to achieve enabled dates feature?\r\n\r\nI have certain dates coming from backend and I only need to enable those dates on calendar. \r\nIs there any way or idea?\r\n\r\nthanks!"}}
{"actor":{"display_login":"sarojmaharjan99999"}}