Skip to content

Vizel API / core/src / createVizelBubbleMenuActions

Function: createVizelBubbleMenuActions()

ts
function createVizelBubbleMenuActions(locale?): VizelBubbleMenuAction[];

Defined in: packages/core/src/toolbar/actions.ts:402

Create bubble-menu actions with locale-specific labels.

Mirrors createVizelToolbarActions. Consumers that want to add or filter actions can .filter / .concat on the returned array; the built-in set is exposed as vizelDefaultBubbleMenuActions for the pure-default case.

locale is optional — when undefined, the actions keep their built-in English labels (suitable for components that allow consumers to omit a locale entirely).

Parameters

ParameterType
locale?VizelLocale

Returns

VizelBubbleMenuAction[]

Released under the MIT License.