简体   繁体   English

Fullcalendar:日历隐藏的资源中的下拉 HTML

[英]Fullcalendar: Dropdown HTML within Resource hidden by Calendar

I'm trying to add specific actions within a dropdown to the given fullcalendar resources.我正在尝试在给定 fullcalendar 资源的下拉列表中添加特定操作。 So far Fullcalendar is a very great tool, but somehow the calendar overlaps the HTML content that I'm injecting.到目前为止 Fullcalendar 是一个非常棒的工具,但不知何故,日历与我正在注入的 HTML 内容重叠。

Is there a better way to inject Dropdowns and other HTML elements, without being overlapped by the calendar?有没有更好的方法来注入 Dropdowns 和其他 HTML 元素,而不会被日历重叠?

It would be great if the dropdown would be completely visible.如果下拉菜单完全可见,那就太好了。 Am I missing something?我错过了什么吗?

在此处输入图像描述

resourceGroupLabelDidMount: function(e) {
  var $this = $(e.el);
  $this.find('.fc-datagrid-cell-cushion').html($('.element').html())
}

Here is a code example: https://codepen.io/sirsir1/pen/BaYXqVj这是一个代码示例: https://codepen.io/sirsir1/pen/BaYXqVj

Found a solution to my own question, it seems to work fine by adding position-fixed class to the ul element:找到了我自己的问题的解决方案,通过将position-fixed的 class 添加到ul元素似乎可以正常工作:

<ul class="position-fixed">
  ...
</ul>

Here is a working code example: https://codepen.io/sirsir1/pen/zYWdPRN这是一个工作代码示例: https://codepen.io/sirsir1/pen/zYWdPRN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM