You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Right now I'm using this (wonderful!) calendar control (among others) to display (off-) peak times. Luckily this can be easily done with the templating system, but: right now I need to call a function the hourSegmentTemplate that gets called pretty often ([class.cal-side-time]="!isWorkingHour(segment.date,group)") causing performance issues on old devices (especially on D'n'D).
Describe the solution you'd like
How about more control or maybe a meta object (like the events have) for the segment object (
)?
Right now I "mock" this a bit by just setting properties in the function, if the value is not present. That's ok, but a bit ... you know ... ugly.
Plus the method gets called pretty, pretty often on D'n'D (what makes it quite slow). Maybe rework it, so the segments won't get recreated but just the events?
Describe your use case for implementing this feature
Off times or other segment specific display options.
Additional context
If you're interessted, I could provide a PR.
The text was updated successfully, but these errors were encountered:
You could also try using the beforeViewRender hook to add a property to each segment and avoid the function call in the template, so then you can do something like [class.cal-side-time]="!segment.isWorkingHour"
Is your feature request related to a problem? Please describe
Right now I'm using this (wonderful!) calendar control (among others) to display (off-) peak times. Luckily this can be easily done with the templating system, but: right now I need to call a function the hourSegmentTemplate that gets called pretty often ([class.cal-side-time]="!isWorkingHour(segment.date,group)") causing performance issues on old devices (especially on D'n'D).
Describe the solution you'd like
How about more control or maybe a meta object (like the events have) for the segment object (
angular-calendar/projects/angular-calendar/src/modules/week/calendar-week-view/calendar-week-view.component.ts
Line 1202 in 4b34012
Right now I "mock" this a bit by just setting properties in the function, if the value is not present. That's ok, but a bit ... you know ... ugly.
Plus the method gets called pretty, pretty often on D'n'D (what makes it quite slow). Maybe rework it, so the segments won't get recreated but just the events?
Describe your use case for implementing this feature
Off times or other segment specific display options.
Additional context
If you're interessted, I could provide a PR.
The text was updated successfully, but these errors were encountered: