Our powerful JS Calendar component


Post by durban »

When I create an event in WeekView, I want it to display a small circle in the upper right of the event in the view. But nothing show after the creation, but when I refresh the page, it displays correctly what I want.
Here's the code:

modes: {
	week: {
		eventRenderer: ({ eventRecord, renderData }) => {
			renderData.iconCls['b-fa b-fa-circle'] = 1;
                        console.log(renderData);
		}
	}
}
Attachments
Display that I want after creation
Display that I want after creation
display_circle.PNG (1.82 KiB) Viewed 427 times

Post by tasnim »

What version of the calendar do you use?
I tried your code in our demo https://bryntum.com/examples/calendar/basic/ and it works well.
Please try it yourself.

Best regards,
Tasnim


Post by durban »

Sorry, it was a problem on my end, I had a bad condition in the eventRenderer, so that's why I didn't had a circle.
Thank you for your time.


Post Reply