Back to Handsontable

Column menu

docs/content/guides/columns/column-menu/column-menu.md

18.0.04.0 KB
Original Source

Display a configurable dropdown menu, triggered by clicking on a button in a column header.

[[toc]]

Overview

The DropdownMenu plugin enables you to add a configurable dropdown menu to the table's column headers. The dropdown menu acts like the context menu but is triggered by clicking the button in the header.

Quick setup

To enable the plugin, set the dropdownMenu configuration option to true when initializing Handsontable.

::: only-for javascript

::: example #example1 --js 1 --ts 2

@code @code

:::

:::

::: only-for react

::: example #example1 :react --js 1 --ts 2

@code @code

:::

:::

::: only-for angular

::: example #example1 :angular --ts 1 --html 2

@code @code

:::

:::

::: only-for vue

::: example #example1 :vue3

@code

:::

:::

Plugin configuration

To use the default dropdown contents, set it to true, or to customize it by setting it to use a custom list of actions. For the available entry options reference, see the Context Menu demo.

::: only-for javascript

::: example #example2 --js 1 --ts 2

@code @code

:::

:::

::: only-for react

::: example #example2 :react --js 1 --ts 2

@code @code

:::

:::

::: only-for angular

::: example #example2 :angular --ts 1 --html 2

@code @code

:::

:::

::: only-for vue

::: example #example2 :vue3

@code

:::

:::

WindowsmacOSActionExcelSheets
<kbd>Shift</kbd>+<kbd>Alt</kbd>+<kbd></kbd><kbd></kbd>+<kbd></kbd>+<kbd></kbd>Open the column menu. Works in any cell, if the respective column header displays the menu button.
<kbd>Shift</kbd>+<kbd>Enter</kbd><kbd></kbd>+<kbd>Enter</kbd>Open the column menu. Works only when you're selecting a column header that displays the column menu button.

Related guides

<div class="boxes-list"> </div>

Configuration options

<div class="boxes-list"> </div>

Hooks

<div class="boxes-list"> </div>

Plugins

<div class="boxes-list"> </div>