Skip to main content

IWindow

Instance of IWindow is found from Window property of IDashboard when the Dashboard is created as a popup dashboard

Properties

NameTypeDescription
EventsIEventsReturns the event registering interface for the IWindow interface.

Methods

NameDescription
CloseCloses the window. The close event is sent before the window is closed.
ResizeToDefaultSizeResize the window to the default size.
SetCloseIconVisibilitySets the visibility of the Close button in the Window.
SetDefaultSizeSets the default size of the window.
SetSizeSets width and height of window
SetTitleSets title of window

Events

CloseWindow

Sent for a window when the window is requested to closed.

MFiles.Event.CloseWindow

Event has no arguments

Example Code

const eventHandle = await window.Events.Register(
MFiles.Event.CloseWindow,
() => {
// Handle event
},
);

// Later unregister the event
window.Events.Unregister(eventHandle);