Back to Fullcalendar

bootstrapFontAwesome

_docs-v6/theming/bootstrapFontAwesome.md

latest1.2 KB
Original Source

Determines which icons are displayed in buttons of the headerToolbar/footerToolbar when Bootstrap 4 theming is on. This setting does not apply to Bootstrap 5 theming. Use buttonIcons instead.

<div class='spec' markdown='1'> Object, *default:*
js
{
  close: 'fa-times',
  prev: 'fa-chevron-left',
  next: 'fa-chevron-right',
  prevYear: 'fa-angle-double-left',
  nextYear: 'fa-angle-double-right'
}
</div>

This option only applies to calendars that have themeSystem set to 'bootstrap' (Bootstrap 4). A FontAwesome stylesheet must be loaded before you can use Bootstrap 4 theming or customize the icons. Getting started with FontAwesome.

A hash must be supplied that maps button names (from the headerToolbar) to icon strings. See a full list of FontAwesome icons.

If a button does not have an entry, it falls back to using buttonText.

If you are using a Bootstrap theme and would prefer not to display any icons and would rather use buttonText instead, you can set the bootstrapFontAwesome option to false.