简体   繁体   English

如何在JavaScript中使用全日历查看一天中的所有文本?

[英]How can I see all text in the day using fullcalendar in javascript?

What do I need to do to see all the text in the day? 要查看当天的所有文字,该怎么办? For example, for the 15th, it says: "Prueba tarea de formulario", but I can see only "Prueba tarea de fo". 例如,对于15号,它说:“ Prueba tarea de Formulario”,但我只能看到“ Prueba tarea de fo”。 I need to display all the text. 我需要显示所有文本。

These are my options: 这些是我的选择:

calendar: function(){

    var self = this;

    $('#calendar').fullCalendar({


    events: self.objCalendar.json,

        header: {

        left: '',
        center: 'prev title next',
        right: ''

        },

    eventClick:  function(event, jsEvent, view) {
        $('#modalTitle').html(event.title);
        $('#modalBody').html(event.description);
        $('#eventUrl').attr('href',event.url);
        $('#fullCalModal').modal();
    }

在此处输入图片说明

Check in your CSS whether you have something similar to this: 检查您的CSS是否具有与此类似的内容:

.fc-event-time, .fc-event-title {
white-space: nowrap;
}

If you remove those lines in the CSS part of this this Fiddle , you'll see that FullCalendar adapts the event sizes to the title length. 如果您在此Fiddle的CSS部分中删除了这些行,您将看到FullCalendar将事件大小调整为标题长度。

暂无
暂无

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

相关问题 FullCalendar:如何使用 DayRender 函数在每月的每一天显示一个图标? - FullCalendar: How can i display an icon on each day of the month using the function DayRender? 如何使用 javascript 根据星期几显示文本消息? - How can I display a text message based on the day of the week using javascript? 我如何在完整日历的所有单元格中显示文本 - How can i display a Text on all cell day in Full calendar 如何使用 javascript 每天更改文本内容? - How can I change text content every day with javascript? FullCalendar - 我可以实现这个视图(见图) - FullCalendar - Can I achieve this view (see images) 如何使用javascript查找属于一天的星期? - How can I find the week which a day belongs to using javascript? 如何使用日期选择器仅查看当月的某一天? - How can I do to see only day of the current month using a datepicker? 如何使用节点调试器查看JavaScript Map的内容? - How can I see the contents of a JavaScript Map using the node debugger? 如何使用JavaScript针对一组标签文本检查所有“ a”元素内部文本是否匹配? - How can I check all “a” elements inner text against a set of labels text for matches using JavaScript? FullCalendar-使用“事件作为函数”方法加载事件,如何获取事件以通过JavaScript重新加载 - FullCalendar - Using 'Events as function' method for loading events, how can I get events to reload via javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM