From 82f4b916857ffae8e2aed9768f4e88cb16d5771e Mon Sep 17 00:00:00 2001 From: "yash.gupta" Date: Mon, 6 Jan 2025 15:41:05 +0530 Subject: [PATCH] [SCAL-235720] Add 'Both' for right and left click for context menu triggers as enumeration in SDK for Embed --- src/embed/ts-embed.ts | 3 ++- src/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/embed/ts-embed.ts b/src/embed/ts-embed.ts index 31ccb6d3..4134843a 100644 --- a/src/embed/ts-embed.ts +++ b/src/embed/ts-embed.ts @@ -491,7 +491,8 @@ export class TsEmbed { * from version 9.2.0.cl the user have an option to override context * menu click */ - if (contextMenuTrigger === ContextMenuTriggerOptions.LEFT_CLICK) { + if (contextMenuTrigger === ContextMenuTriggerOptions.LEFT_CLICK + || contextMenuTrigger === ContextMenuTriggerOptions.BOTH_CLICKS) { queryParams[Param.ContextMenuTrigger] = true; } else if (contextMenuTrigger === ContextMenuTriggerOptions.RIGHT_CLICK) { queryParams[Param.ContextMenuTrigger] = false; diff --git a/src/types.ts b/src/types.ts index 6322f9d1..adae0aef 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4471,6 +4471,7 @@ export enum PrefetchFeatures { export enum ContextMenuTriggerOptions { LEFT_CLICK = 'left-click', RIGHT_CLICK = 'right-click', + BOTH_CLICKS = 'both-clicks', } export interface ColumnValue {