ComponentHandle
Defined in: api/node/typescript/index.ts:130 ↗
This interface describes the public API of a Slint component that is common to all instances. Use this to show() the window on the screen, access the window and subsequent window properties, or start the Slint event loop with run().
Accessors
Section titled “Accessors”window
Section titled “window”Get Signature
Section titled “Get Signature”get window():
Window
Defined in: api/node/typescript/index.ts:154 ↗
Returns the Window associated with this component instance. The window API can be used to control different aspects of the integration into the windowing system, such as the position on the screen.
Returns
Section titled “Returns”Methods
Section titled “Methods”hide()
Section titled “hide()”hide():
void
Defined in: api/node/typescript/index.ts:148 ↗
Hides the component’s window, so that it is not visible anymore.
Returns
Section titled “Returns”void
run():
Promise<unknown>
Defined in: api/node/typescript/index.ts:138 ↗
Shows the window and runs the event loop. The returned promise is resolved when the event loop is terminated, for example when the last window was closed, or quitEventLoop was called.
This function is a convenience for calling show, followed by runEventLoop, and hide when the event loop’s promise is resolved.
Returns
Section titled “Returns”Promise<unknown>
show()
Section titled “show()”show():
void
Defined in: api/node/typescript/index.ts:143 ↗
Shows the component’s window on the screen.
Returns
Section titled “Returns”void
© 2026 SixtyFPS GmbH