Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/436.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 全日历锚点';s title属性为空_Javascript_Jquery_Html_Css_Fullcalendar - Fatal编程技术网

Javascript 全日历锚点';s title属性为空

Javascript 全日历锚点';s title属性为空,javascript,jquery,html,css,fullcalendar,Javascript,Jquery,Html,Css,Fullcalendar,尝试在我们的网站上使用。尽管在源API中设置了event对象的title属性,但呈现的a标记具有空的title属性。如下图所示 标题文本在日历框中显示良好,但问题在于a标记中的title属性为空,悬停在事件上方不会显示整个标题。 不,我还不想尝试qtip或bootstrap popover。该函数将允许您设置标题 eventRender: function (event, element) { element.attr('title', event.title); } 您可以使用no

尝试在我们的网站上使用。尽管在源API中设置了
event
对象的
title
属性,但呈现的
a
标记具有空的
title
属性。如下图所示

标题文本在日历框中显示良好,但问题在于
a
标记中的
title
属性为空,悬停在事件上方不会显示整个标题。

不,我还不想尝试qtip或bootstrap popover。

该函数将允许您设置标题

eventRender: function (event, element) {
    element.attr('title', event.title);
}

您可以使用noEventsMessage属性为空列表设置默认标题

var calendar = new FullCalendar.Calendar(calendarEl, {
  plugins: [ 'list' ],
  defaultView: 'listWeek',
  noEventsMessage: 'No event found !!!!!!',  <--------------this property-----------
  events: [
    {
      title: 'Meeting',
      start: '2019-08-12T14:30:00',
      extendedProps: {
        status: 'done'
      }
    },
    {
      title: 'Birthday Party',
      start: '2019-08-13T07:00:00',
      backgroundColor: 'green',
      borderColor: 'green'
    }
  ]
});
var calendar=newfullcalendar.calendar(calendarEl{
插件:[“列表”],
defaultView:“listWeek”,

noEventsMessage:“未找到任何事件!!!!!”,更新FullCalendar5

noEventsMessage
重命名为
noeventcontent

var calendar=newfullcalendar.calendar(calendarEl{
插件:[“列表”],
defaultView:“listWeek”,
NoeventContent:“未找到任何事件!!!!!!!”,