fullcalendar-workspace icon indicating copy to clipboard operation
fullcalendar-workspace copied to clipboard

Add ClassName to ResourceCellHtml

Open bosquig opened this issue 9 years ago • 2 comments

Add the possibility to add a class name to the th cell depending the resource. exemple : resource : [ { id: 'a', title: 'Room A', cellClassName: 'backup' }, { id: 'b', title: 'Room B', cellClassName : 'first' }]

HTML result : < th class="fc-resource-cell backup" data-resource-id="a">Room A< /th> < th class="fc-resource-cell first" data-resource-id="b">Room B< /th>

bosquig avatar May 16 '16 12:05 bosquig

Hello, can I have any update regarding this PR ?

Thanks in advance for your reply.

bosquig avatar Feb 28 '17 09:02 bosquig

Thanks. this PR is most closely related to this issue ticket: https://github.com/fullcalendar/fullcalendar-scheduler/issues/125

Before merging this, it would be great to have the following:

  • have the className also work in timeline view
  • have the className not just apply to the header (or in timeline's case, the left area), but also the main area of the resource. If you want to style just the header, you can use a combination of CSS selectors.

arshaw avatar Mar 13 '17 21:03 arshaw