CloseWindow

CloseWindow(frameId)

Closes the plugin modal window.

Parameters:

Name Type Description
frameId string

The frame ID.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.button = function(id, windowId) {
	if (!modalWindow)
		return;

	if (windowId) {
		switch (id) {
			case -1:
			default:
				window.Asc.plugin.executeMethod('CloseWindow', [windowId]);
		}
	}
};