- Home
- Forum
- Angular - EJ 2
- How to add text with dates in Calender
How to add text with dates in Calender
6 Replies
1 reply marked as answer
SN
Sevvandhi Nagulan
Syncfusion Team
June 30, 2020 06:28 AM UTC
Hi Tabinda,
Greetings from Syncfusion support.
Before proceeding your query, can you please provide the information below to help us understand the requirement further?
1. Requirement to display a screenshot / video
2. Share any links or blogs that suggest the requirement
Regards,
Sevvandhi N
TM
Tabinda Muslim
June 30, 2020 06:34 AM UTC
TM
Tabinda Muslim
June 30, 2020 09:38 AM UTC
How to add a custom popup on click of date as shown in attachment?
Attachment: calender_1_bfc38821.rar
Attachment: calender_1_bfc38821.rar
SN
Sevvandhi Nagulan
Syncfusion Team
July 1, 2020 08:38 AM UTC
Hi Tabinda,
Thanks for the update.
While checking the screenshot provided, we suspect that your requirement was related to the schedule component. Please check the month view calendar in the below demo sample,
Also find the calendar demo sample,
So, can you please confirm whether the schedule or calendar component is your requirement?
Regards,
Sevvandhi N
TM
Tabinda Muslim
July 1, 2020 08:56 AM UTC
Hello,
My requirement is in Calendar only. Through Calendar I want to achieve my requirements with css overriding.
I want to add text along with date also want to add a eventHandler on click of each date.
Thank you
SN
Sevvandhi Nagulan
Syncfusion Team
July 2, 2020 09:43 AM UTC
Hi Tabinda,
Thanks for the update.
Query1 : My requirement is in Calendar only. Through Calendar I want to achieve my requirements with css overriding.
Solution:
We have added some text along with the dates using the renderDayCell event. Refer to the code below,
|
onLoad(args: any) {
if(!args.element.classList.contains('e-other-month')){
let span: HTMLElement;
span = document.createElement('span');
span.textContent = "45 MT";
span.setAttribute('class', 'e-icons highlight');
args.element.appendChild(span);
}
}
|
Query 2: I want to add text along with date also want to add a eventHandler on click of each date.
Solution:
When click on each cell, then change event will be triggered. The change event can be used for performing the action as per your own.
Regards,
Sevvandhi N
Marked as answer
SIGN IN To post a reply.
- 6 Replies
- 2 Participants
- Marked answer
-
TM Tabinda Muslim
- Jun 29, 2020 02:11 PM UTC
- Jul 2, 2020 09:43 AM UTC