SAPUI5计划日历空单元格单击问题

时间:2019-03-27 15:39:07

标签: calendar sapui5

我想在“计划日历”组件中获取选定的单元格元素吗?但是,当我单击空白单元格时,我只能得到选定的行。是否可以获得我单击的单元格?我查看了SAP文档站点。但是我找不到任何可以做的事情吗?这是结果图像和PlanningCalendar组件的代码; Image Link

 <PlanningCalendar
                        class="planning-calendar"
                        id="WorkingCalender_id"
                        stickyHeader="true" 
                        showIntervalHeaders="true"
                        rows="{path: '/PlanData/people'}"
                        intervalSelect="addPlan"
                        appointmentsVisualization="Filled"
                        showEmptyIntervalHeaders="false"
                        appointmentSelect="PlanItemSelect"
                        startDateChange="refreshPlan">
                        <rows>
                            <PlanningCalendarRow>
                                <appointments>
                               ...
                                </appointments>
                                <intervalHeaders>
                                 ...
                                </intervalHeaders>
                            </PlanningCalendarRow>
                        </rows>
</PlanningCalendar>

addPlan: function(oEvent) {
    var row = oEvent.getParameter("row");
    // var selectedCell = ? How can I get the selectedCell by clicking
},

0 个答案:

没有答案