customContent of sap.ui.unifiedCalendarAppointment not working in SinglePlanningCalendar
OpenUI5 version: 1.119.1
Browser/version (+device/version): Any
Any other tested browsers/devices(OK/FAIL): FAIL
URL (minimal example if possible): https://sdk.openui5.org/entity/sap.m.SinglePlanningCalendar/sample/sap.m.sample.SinglePlanningCalendar/code
In Page.view.xml replace (lines 50 to 57):
<unified:CalendarAppointment title= "{title}" text= "{text}" type= "{type}" icon= "{icon}" startDate= "{startDate}" endDate= "{endDate}"> </unified:CalendarAppointment>
with:
<unified:CalendarAppointment
text= "{text}"
type= "{type}"
icon= "{icon}"
startDate= "{startDate}"
endDate= "{endDate}">
<unified:customContent>
<Title text="Custom Content Test"/>
</unified:customContent>
</unified:CalendarAppointment>
What is the expected result? Title and text properties get ignored and the appointment renders the customContent
What happens instead? customContent gets ignored
Notes: customContent works just fine for the normal PlanningCalendar
According to https://sdk.openui5.org/api/sap.m.SinglePlanningCalendar#aggregations
[...] Note: The
customContentfunctionality of theCalendarAppointmentis not available in theSinglePlanningCalendar. If set, it will not make any effect.
Hi @ZPolikarpov,
Have in mind that as of UI5 version 1.123 there is a customContent in the SinglePlanningCalendar's appointments too.
Thanks & Regards, Diana
I've created an internal incident DINC0335803 to update the documentation. The status of the issue will be updated here in GitHub.
Hello @ZPolikarpov , thank you for identifying and sharing the issue. Starting from the next version, the documentation is written more clearly.
Thanks & Regards, Todor