documentationfor yFiles for HTML 2.6

ClickInputMode

An input mode that recognizes simple mouse clicks.

Inheritance Hierarchy
ClickInputMode
Implemented Interfaces

Remarks

Clients register to Clicked to get notified of mouse clicks. The activeButtons property can be used to switch between the detection of right and left mouse clicks.

This mode can be instructed to swallow clicks if they happen shortly after the control gained focus. This is useful to prevent accidental clicks from being processed if the user wanted to put the focus into the control, only.

This mode is exclusive by default.

Examples

Typically the ClickInputMode is installed as child mode of a GraphEditorInputMode or GraphViewerInputMode and can be retrieved from the clickInputMode property.
Getting the ClickInputMode from its parent input mode
const clickInputMode = mode.clickInputMode

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.input.ClickInputMode

See Also

Constructors

Properties

Methods

Events