close(dim: PP.Mb.DimSource, callback: Function);
dim. A dictionary that must be closed.
callback. Callback procedure.
The close method closes a dictionary.
Executing the example requires an instance of the DimSrv class named dimService (see DimSrv constructor). Add a handler for dictionary closing event:
// Add a handler of the event that occurs on closing a dictionary dimService.DimClosed.add( function() { // Output a message about event to the browser console console.log("DimClosed event"); } ); // Close the dictionary dimService.close(dim);
As a result dictionary connection is closed, the console displays a message about closing the dictionary:
DimClosed event
See also: