Полный перенос календаря fc-heading и fc-item в один div - PullRequest
0 голосов
/ 29 марта 2019

Полный календарь, как обернуть fc-list-heading и fc-list-item в один div?

Нужен вывод как этот

<div>
  <tr>fc-list-heading</tr>
</div>
<div>
  <tr>fc-list-item</tr>
  <tr>fc-list-item</tr>
</div>

enter image description here

1 Ответ

1 голос
/ 01 апреля 2019

Я сделал это следующим образом:

eventAfterAllRender: function (view) {
  if (view.name == 'listUpcoming' || view.name == 'listPast') {
    let tableSubHeaders = $(".fc-list-heading");
    tableSubHeaders.each(function () {
      jQuery(this).nextUntil(".fc-list-heading").wrapAll("<tr class='fc-list-item-parent'></tr>");
       });
     }
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...