Class: HeaderTooltips

HeaderTooltips

Allows to add a tooltip to the table headers.

Available options:

  • the rows property defines if tooltips should be added to row headers,
  • the columns property defines if tooltips should be added to column headers,
  • the onlyTrimmed property defines if tooltips should be added only to headers, which content is trimmed by the header itself (the content being wider then the header).
Example
const container = document.getElementById('example');
const hot = new Handsontable(container, {
  date: getData(),
  // enable and configure header tooltips
  headerTooltips: {
    rows: true,
    columns: true,
    onlyTrimmed: false
  }
});

Methods

destroy()

Destroys the plugin instance.

disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enablePlugin()

Enables the plugin functionality for this Handsontable instance.

isEnabled(){Boolean}

Checks if the plugin is enabled in the handsontable settings. This method is executed in Hooks#beforeInit
hook and if it returns true than the HeaderTooltips#enablePlugin method is called.

Returns: {Boolean}