Buttons 3.2.0

DataTables CDN files for Buttons 3.2.0. This software was originally released on 12th November, 2024.

Release notes

This release of Buttons has a reworking of how the dropdown icon is shown in individual buttons, and it can now be enabled using the buttons.buttons.dropIcon option, which is particularly useful when working with modals.

There are a number of other new features and fixes - see release notes below for full details.

New

  • buttons.buttons.dropIcon - ability to show a dropdown icon per button to indicate to the end user that further interaction will be required when the button is activated.
  • Buttons with a split can now be enabled and disabled like normal buttons
  • Split button will disable automatically if there are no enabled buttons inside it, and then enable itself if a button is enabled (e.g. from an action such as selecting a row in the table).
  • Add escapeExcelFormula to buttons.exportData() and enable it by default for the CSV export button to prevent possible formula injection.
  • When closing a popover, trigger a buttons-popover-hide.dt event on the body.
  • sort option for colvis which can be set to be alphabetic to have the buttons shown in the dropdown sort alphabetically.

Fixes

  • If a popover is fixed position, then attach it to the body, rather than next to the host button
  • Clicking on a button from a split list will now cause the collection to hide.
  • An error would occur if an export button was used as a split
  • Update structure of some elements for SASS update. No functional change
  • Dropup wasn't working when in an offset parent with a low position top

Typescript

  • Fix collection button type

Files