openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

customContent of sap.ui.unifiedCalendarAppointment not working in SinglePlanningCalendar

Open ZPolikarpov opened this issue 3 years ago • 4 comments

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

ZPolikarpov avatar Oct 23 '23 14:10 ZPolikarpov

According to https://sdk.openui5.org/api/sap.m.SinglePlanningCalendar#aggregations

[...] Note: The customContent functionality of the CalendarAppointment is not available in the SinglePlanningCalendar. If set, it will not make any effect.

boghyon avatar Oct 23 '23 15:10 boghyon

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

DMihaylova avatar Nov 14 '24 13:11 DMihaylova

I've created an internal incident DINC0335803 to update the documentation. The status of the issue will be updated here in GitHub.

50gY avatar Nov 18 '24 09:11 50gY

Hello @ZPolikarpov , thank you for identifying and sharing the issue. Starting from the next version, the documentation is written more clearly.

Thanks & Regards, Todor

Todor-ads avatar Nov 28 '24 06:11 Todor-ads