documentationfor yFiles for HTML 2.6

WaitInputMode

An IInputMode implementation that can be used to block user interaction.

Inheritance Hierarchy
WaitInputMode
Implemented Interfaces

Remarks

Setting the waiting property will try to cancel ongoing edits of the mutex owner and set the preferred cursor to waitCursor. This mode will try to add itself to the Lookup of the CanvasControl, so that other clients can make use of its functionality.

This mode uses an exclusive controller by default.

Examples

Typically the WaitInputMode is installed as child mode of a GraphEditorInputMode or GraphViewerInputMode and can be retrieved from the waitInputMode property.
Getting the WaitInputMode from its parent input mode
const waitInputMode = mode.waitInputMode
Blocking user interaction during an asynchronous process
graphEditorInputMode.waiting = true
await longRunningAsyncProcess()
graphEditorInputMode.waiting = false

Type Details

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

See Also

Constructors

Properties

Methods

Events