Can any one implemented DayRender? if so please pass me the example.
I tried this in Angular 2.0 (typeScript) but its not working. Date and cell are not identified.
this.dayRender(date, cell) {
cell.css("background-color", "yellow");
}
P-Schedule dayRender
In case of attributes, PrimeNG schedule just passes all the config details to the full calendar options. It should work the same way as full calendar dayrender function.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
You just need to call the function like [dayRender]="dayRender" .That's it.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
I use Angular 4 and "primeng": "^4.1.0". Just using
doesn't get any result. Both params are undefined. How should it work?
Code: Select all
[dayRender]="dayRender"
...
dayRender(date: any, cell: any): void {
}
I found my issue. Documentations says: This callback lets you modify day cells that are part of the month, basicWeek, and basicDay views, but i tried to use it with agendaWeek and agendaDay. So, additional question: does any mechanism have for handling cells rendering on agendaWeek and agendaDay views?biven wrote: ↑16 Nov 2017, 11:48I use Angular 4 and "primeng": "^4.1.0". Just usingdoesn't get any result. Both params are undefined. How should it work?Code: Select all
[dayRender]="dayRender" ... dayRender(date: any, cell: any): void { }
i use primefaces in JSF projects.
in my case, suppose that i've declared my schedule this way:
<p:schedule id="schedule" .... (other params..)
in a javascript block i call this:
$("#schedule").fullCalendar({
dayRender: function (date, cell) {
cell.css("background-color", "red");
}
});
in my case, suppose that i've declared my schedule this way:
<p:schedule id="schedule" .... (other params..)
in a javascript block i call this:
$("#schedule").fullCalendar({
dayRender: function (date, cell) {
cell.css("background-color", "red");
}
});
-
- Posts: 449
- Joined: 08 Aug 2018, 14:09
p-schedule is deprecated. You can use p-fullCalendar. You can more info in http://primefaces.org/primeng/#/fullcalendar .