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 236fea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/embed/ts-embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ 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_CLICK ) {

Check failure on line 494 in src/embed/ts-embed.ts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 138. Maximum allowed is 100

Check failure on line 494 in src/embed/ts-embed.ts

View workflow job for this annotation

GitHub Actions / build

There should be no space before this paren
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_CLICK = 'both-click',
}

export interface ColumnValue {
Expand Down

0 comments on commit 236fea5

Please sign in to comment.