@jsvision/ui / StatusLoopSeam
Interface: StatusLoopSeam
Defined in: ui/src/status/statusline.ts:23
The application operations the status line calls into for activation, greying, and press capture.
Methods
emitCommand()
emitCommand(
command,arg?):void
Defined in: ui/src/status/statusline.ts:25
Emit the item's command so the app can handle it.
Parameters
command
string
arg?
unknown
Returns
void
isCommandEnabled()
isCommandEnabled(
command):boolean
Defined in: ui/src/status/statusline.ts:27
Whether a command is enabled — a disabled item is greyed and cannot be activated.
Parameters
command
string
Returns
boolean
releaseCapture()
releaseCapture():
void
Defined in: ui/src/status/statusline.ts:31
Release the pointer capture.
Returns
void
setCapture()
setCapture(
view):void
Defined in: ui/src/status/statusline.ts:29
Capture the pointer to the status line for the duration of a press.
Parameters
view
Returns
void