Enh. sap.ui.unified.CalendarRow - make number of Sub Intervals configurable
Open
@petyabegovska is already working on this.
Since Apr 19, 2022.
enhancement
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
OpenUI5 version:
1.34
A requirement has come up a number of times from customers to make the Sub Intervals on a Calendar row configurable.
As/Is the number of Sub Intervals are hard coded, example when working a time interval of hours there are 4 sub intervals shown, this equates to 15 minutes,
We have a requirement when working with the sap.m.PlanningCalendar to configure the sub interval based on the appointment use case, some appointments are 20 minutes, some are 30 minutes
CalendarRowRenderer.renderInterval
...
if (oRow.getShowSubIntervals()) {
var sIntervalType = oRow.getIntervalType();
var iSubIntervals = 0;
switch (sIntervalType) {
case sap.ui.unified.CalendarIntervalType.Hour:
iSubIntervals = 4; <=== would like this to be configurable
break;
case sap.ui.unified.CalendarIntervalType.Day:
iSubIntervals = 24;
break;
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.