程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了更改 fullCalendar resourceTimeGridDay 视图行高大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决更改 fullCalendar resourceTimeGridDay 视图行高?

开发过程中遇到更改 fullCalendar resourceTimeGridDay 视图行高的问题如何解决?下面主要结合日常开发的经验,给出你关于更改 fullCalendar resourceTimeGridDay 视图行高的解决方法建议,希望对你解决更改 fullCalendar resourceTimeGridDay 视图行高有所启发或帮助;

我在我的 React 项目中集成了 fullcalendar,如果我更改 slotMinTime 和 slotMaxTime 属性,则行会更改其高度。如果我减少显示每个插槽的小时数会变大,我无法将其恢复到实际大小。我使用了 contentHeight 和 aspectRatio 但它们似乎也不起作用。请帮忙。

<FullCalendar
        schedulerlicenseKey="CC-Attribution-NonCommercial-NoDerivatives"
        ref={CalendarRef}
        plugins={[
            momentTimezonePlugin,Scrollgridplugin,resourceTimelinePlugin,resourceTimeGridplugin,GoogleCalendarPlugin,interactionPlugin
        ]}
        timeZone="America/New_York"
        height="100%"
        // aspectRatio={5}
        droppable={truE}
        headerToolbar={{
            left : '',center : '',right : ''
        }}
        dayminWIDth={250}
        NowInDicator={truE}
        slotEventOverlap={falsE}
        slotDuration="00:15:00"
        slotMinTime="07:00:00"
        slotMaxTime="19:00:00"
        slotLabelinterval="00:15"
        slotLabelFormat={{
            hour : 'numeric',minute : '2-digit',hour12 : true
        }}
        initialVIEw="resourceTimeGrIDDay"
        editable={truE}
        eventresourceEditable={truE}
        allDaySlot={falsE}
        SELEctable={truE}
        SELEctMirror={truE}
        daymaxEvents={truE}
        resources={resources}
        events={appointments}
        slotLabelContent={SlotComp}
        resourceLabelContent={data => RenderresourceContent(data,setActiveProvIDerVIEw)
        }
        resourceOrder="title"
        weekends={truE}
        eventContent={data => (
            <EventComp
                data={data}
                appointments={appointments}
                APILoading={APILoading}
                addAppointmentToupdate={addAppointmentToupdatE}
                addAppointmentToDuplicate={addAppointmentToDuplicatE}
                addBreakAppointment={addBreakAppointment}
                updateAppointmentStatus={updateAppointmentStatus}
                showRecurringLoadingNotification={
                    showRecurringLoadingNotification
                }
                appointmentDetailsToggle={appointmentDetailsTogglE}
                getPatIEntDetails={getPatIEntDetails}
            />
        )}
        SELEctConsTraint="businessHours"
        eventConsTraint="businessHours"
        SELEct={newEventSELEcteD}
        eventDrop={eventDroppeD}
        eventResize={eventResizeStoppeD}
        eventChange={eventChangeD}
    />

如果我不指定最小和最大时间,这就是它的样子 https://drive.google.com/file/d/1R58BdUJAt11G2vZ0bbsvOJaPYpKPj33p/view?usp=sharing

在我指定之后 https://drive.google.com/file/d/1l6opSZClV0sz3kgVEQV6ioIyor-YIKZt/view?usp=sharing

行高达到 80 像素,否则只有 40 像素

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的更改 fullCalendar resourceTimeGridDay 视图行高全部内容,希望文章能够帮你解决更改 fullCalendar resourceTimeGridDay 视图行高所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:更改