Skip to content

Commit

Permalink
[SCAL-235720] Add 'Both' for right and left click for context menu tr…
Browse files Browse the repository at this point in the history
…iggers as enumeration in SDK for Embed
  • Loading branch information
Yashg5080 committed Jan 6, 2025
1 parent 42d5676 commit 82f4b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/embed/ts-embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 82f4b91

Please sign in to comment.