Skip to content

Commit

Permalink
Add CSS classes for more fine-grained styling
Browse files Browse the repository at this point in the history
 1. fce-cols-day-header
 2. fce-cols-col-header
  • Loading branch information
mherrmann committed Aug 25, 2021
1 parent 80c1690 commit 75e4117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fullcalendar-columns.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* fullcalendar-columns v1.12
* fullcalendar-columns v1.13
* Docs & License: https://github.com/mherrmann/fullcalendar-columns
* (c) Michael Herrmann
*/
Expand Down Expand Up @@ -117,9 +117,9 @@
if (isFirstCellForDay) {
// Make the cell appear centered:
var posPercent = 100 * that.numColumns;
html = '<div style="position: relative; width: '
+ posPercent + '%;text-align:center;">'
+ $html.html() + '</div>';
html = '<div class="fce-cols-day-header" '
+ 'style="position: relative; width: ' + posPercent
+ '%;text-align:center;">' + $html.html() + '</div>';
} else {
html = '<div>&nbsp;</div>';
$html.css('border-left-width', 0);
Expand All @@ -130,8 +130,8 @@
// Use the prefix 'fce-col-' (as in "FullCalendar
// extension") for classes pertaining only to
// fullcalendar-columns:
html += '<div class="fce-col-header">' +
that.columnHeaders[cellOrig.column] + '</div>';
html += '<div class="fce-cols-col-header">' +
that.columnHeaders[cellOrig.column] + '</div>';
}
$html.html(html);
return $html[0].outerHTML;
Expand Down

0 comments on commit 75e4117

Please sign in to comment.