Sapui5 sap ui5计划日历-标题文本大小

Sapui5 sap ui5计划日历-标题文本大小,sapui5,Sapui5,我正在计划中使用以下XML标记创建约会 我想减少每次约会中的约会标题大小-title=“{title}” 还想增加约会的高度以显示更多数据 <appointments> <unified:CalendarAppointment startDate="{start}" endDate="{end}"

我正在计划中使用以下XML标记创建约会

我想减少每次约会中的约会标题大小-title=“{title}”

还想增加约会的高度以显示更多数据

<appointments>
                    <unified:CalendarAppointment
                        startDate="{start}"
                        endDate="{end}"
                        icon="{pic}"
                        title="{title}"
                        text="{info}"
                        type="{type}"
                        tentative="{tentative}">
                    </unified:CalendarAppointment>
                </appointments>

您可以将CSS类分配给您的计划日历,并修改相应的CSS类以满足您的需求。 CSS类:

  • sapUiCalendarApp:控制每个约会的高度
  • sapUiCalendarAppTitle:控制每个约会标题的字体大小
  • 因此,让我们将自己的类分配给计划日历,以便其他开发人员代码受到影响(或者整个库CSS不更新)

    CSS代码:

            .myCalendar .sapUiCalendarApp {
                height:5rem;
            }
    
            .myCalendar .sapUiCalendarAppTitle {
                font-size:.5rem;
            }
    
    XML代码: 我们需要将CSS类添加到计划日历中:

    <PlanningCalendar
                class='myCalendar'
                id="PC1"
                startDate="{path: '/startDate'}"
                rows="{path: '/people'}"
                appointmentsVisualization="Filled"
                appointmentSelect="handleAppointmentSelect"
                showEmptyIntervalHeaders="false">
                .......
                <appointments>
                        <unified:CalendarAppointment
                            startDate="{start}"
                            endDate="{end}"
                            icon="{pic}"
                            title="{title}"
                            text="{info}"
                            type="{type}"
                            tentative="{tentative}">
                        </unified:CalendarAppointment>
                    </appointments>
                   .............
    
    
    .......
    .............
    

    您可以修改上述CSS类以满足您的需求。如果需要任何其他信息,请告诉我。

    说“通缉”意味着你想进入关卡,但不再是。撇开迂腐不谈,假设你的意思是想要,你需要提供更多的信息。增加标题的大小在哪里?在网页上,在应用程序中?你写过代码吗?