UI5 / UI5/openui5

Enh. sap.ui.unified.CalendarRow - make number of Sub Intervals configurable

Open
#937 4 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.