question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using CustomEventTitleFormatter in a day view scheduler correctly.

See original GitHub issue

Hi,

I am following this documentation: https://mattlewis92.github.io/angular-calendar/#/day-view-scheduler


What I would like to do:

Display a days schedule for all people and their events. The look and feel should be like the week view, where each day is nicely separated by table like borders. Also I would like to restyle the event title template. Which is usually possible by using a “CustomEventTitleFormatter”.

What is the problem

How to use the “CustomEventTitleFormatter” with the demo quoted above? The custom “DayViewSchedulerComponent” seems not to accept two providers or just doesn’t trigger the correct behaviour

Screenshots

How I assume the events should look: Screen Shot 2019-07-30 at 11 32 18

How they actually look: Screen Shot 2019-07-30 at 11 32 10

Versions

  • @angular/core: 7.1.0
  • angular-calendar: 0.26.6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
notsurecommented, Nov 4, 2019

Hi folks,

sorry for kept you waiting. I was on holiday and somehow my notifications didn’t send me an email…

here is a Link just add a CustomTitleFormatter to your component and you are ready to go.

https://stackblitz.com/edit/angular-dfnhq3

Notice:

  1. Add a new file: “custom-title-formatter.ts”
  2. Overwrite the desired functions.
  • Note they need to return some string value
  1. Include/Overwrite it in your component within the provider section.

Let me know if you got it working.

@tjoudeh @gauravtmavens

0reactions
gauravtmavenscommented, Nov 4, 2019

Hello @notsure can you please guide me how you were able to customize the title, I want to have something similar to your design, like to have a title on a line, then another line which shows more information about the event (event details.)

Thank you

Hi tjoudeh, I’m facing the same issue have you solved this issue if yes then please help me with this issue.

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular calendar external event drop to day view scheduler
I am working on the Angular calendar and the requirement is to drop external event to the day timeline to specific user. I...
Read more >
Building a Calendar for Ionic With Angular ... - Devdactic
This Calendar for Angular is using the quite popular FullCalendar, a jQuery ... basically adding a day view into each day of the...
Read more >
Views in Angular Schedule component - Syncfusion
Learn how to customize each individual view of Angular Scheduler with different ... By default, Scheduler displays the calendar views such as day,...
Read more >
How do I use the Calendar as an instructor?
You can view calendar events by day, week, month, or agenda list. The calendar also includes access to the Scheduler, which is an...
Read more >
Single Schedule Day view has previous / next button behavior ...
Javascript scheduler for desktop with week-calendar at the top and customizable daily schedule below. Drag & drop ready. Plain JS api for usage ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found