Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7406

Showing context menu on left click

$
0
0

@AmoghRaghuram wrote:

We want to be able to show the context menu on a left click instead of a right. How can we achieve this?

This is what we are currently using for the context menu.

(go.TextBlock, '', { row: 0, column: 2, width: 20 }), (go.Shape, {
width: 10,
height: 10,
column: 2,
margin: 6,
figure: ‘LogicIsDefinedAs’
}, {
contextMenu: // define a context menu for each node
('ContextMenu', // that has one button (‘ContextMenuButton’, {
‘ButtonBorder.fill’: ‘white’
},
(go.TextBlock, 'Delete'), { click: (e, obj) => { this.deleteComponent(obj); } }), (‘ContextMenuButton’, {
‘ButtonBorder.fill’: ‘white’
},
$(go.TextBlock, ‘Duplicate’), {
click: (e, pt, compInstance) => this.duplicateComponent(compInstance, pt, e)
})
)
})

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7406