将自定义 HTML 添加到 jQuery FullCalendar 单元格 [英] Add custom HTML to a jQuery FullCalendar cell

查看:39
本文介绍了将自定义 HTML 添加到 jQuery FullCalendar 单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 jQuery FullCalendar ( 回调.在那里,我使用 jQuery 解析元素"参数并在发送到浏览器之前重写 html.

I am using the jQuery FullCalendar (http://arshaw.com/fullcalendar/docs/).

I want to add some custom HTML to each day-cell.

For example in my case I want to have different background colors based on some logic, display a price in the middle...

Is there a way to customize the rendering of a cell?

解决方案

I will explain how I solved this issue for other people.

I used the eventAfterRender callback. In there I used jQuery to parse the "element" parameter and re-write the html before it is sent to the browser.

这篇关于将自定义 HTML 添加到 jQuery FullCalendar 单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆