IWindow
Instance of IWindow is found from Window
property of IDashboard when the Dashboard is created as a popup dashboard
Properties
Name | Type | Description |
---|---|---|
Events | IEvents | Returns the event registering interface for the IWindow interface. |
Methods
Name | Description |
---|---|
Close | Closes the window. The close event is sent before the window is closed. |
ResizeToDefaultSize | Resize the window to the default size. |
SetCloseIconVisibility | Sets the visibility of the Close button in the Window. |
SetDefaultSize | Sets the default size of the window. |
SetSize | Sets width and height of window |
SetTitle | Sets 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);