Skip to main content

ModuleOpenListener

type ModuleOpenListener = (params: {
eventName: string;
eventOptions?: Record<string, unknown>;
eventParams: ModuleOpenInfo & Record<string, unknown>;
obj: IApplication;
}) => boolean;

event handler that handles module open event

Parameters

params

event parameters

eventName

string

event name

eventOptions?

Record<string, unknown>

additional options related to the event

eventParams

ModuleOpenInfo & Record<string, unknown>

information about the module to be opened along with parameters

obj

IApplication

module object reference

Returns

boolean

true if module is valid and can be opened, false otherwise