日历Angularjs

时间:2015-06-19 08:12:59

标签: angularjs calendar fullcalendar

Goodmorning everyone, 我正在使用日历angularjs和库fullcalendar.js。如果我添加按钮,这个地方是allday(位于第七天)。所以我想知道你是如何棱角分明的?在库中我应该使用fullcalendar.js renderhtml,但我不知道如何使用它。我问你一只手。

这是我的代码:

fullcalendar.js我应该在angularjs

中更改的部分
renderHtml: function() {
        return '' +
            '<table>' +
                '<thead class="fc-head">' +
                    '<tr>' +
                        '<td class="' + this.widgetHeaderClass + '">' +
                            this.timeGrid.headHtml() + // render the day-of-week headers
                        '</td>' +
                    '</tr>' +
                '</thead>' +
                '<tbody class="fc-body">' +
                    '<tr>' +
                        '<td class="' + this.widgetContentClass + '">' +
                            (this.dayGrid ?
                                '<div class="fc-day-grid"/>' +
                                '<hr class="fc-divider ' + this.widgetHeaderClass + '"/>' :
                                ''
                                ) +
                            '<div class="fc-time-grid-container">' +
                                '<div class="fc-time-grid"/>' +
                            '</div>' +
                        '</td>' +
                    '</tr>' +
                '</tbody>' +
            '</table>';
    },

1 个答案:

答案 0 :(得分:0)

fullcalendar.js the aprte I should change in angularjs
renderHtml: function() {
        return '' +
            '<table>' +
                '<thead class="fc-head">' +
                    '<tr>' +
                        '<td class="' + this.widgetHeaderClass + '">' +
                            this.timeGrid.headHtml() + // render the day-of-week headers
                        '</td>' +
                    '</tr>' +
                '</thead>' +
                '<tbody class="fc-body">' +
                    '<tr>' +
                        '<td class="' + this.widgetContentClass + '">' +
                            (this.dayGrid ?
                                '<div class="fc-day-grid"/>' +
                                '<hr class="fc-divider ' + this.widgetHeaderClass + '"/>' :
                                ''
                                ) +
                            '<div class="fc-time-grid-container">' +
                                '<div class="fc-time-grid"/>' +
                            '</div>' +
                        '</td>' +
                    '</tr>' +
                '</tbody>' +
            '</table>';
    },