# Class: IMCSDialogVisualizer

## IMCSDialogVisualizer(tree, settings)

#### new IMCSDialogVisualizer(tree, settings)

Creates a new JavaScript dialog window, which is automatically laid out on the screen.
*

##### Parameters:

Name | Type | Description
--- | --- | ---
`tree` | object | a JavaScript/JSON object, which represents the tree of dialog components according to Dialog Engine Metamodel;
`settings` | object | a JavaScript/JSON object contatining configuration settings The fields are:
dialogDiv | HTML div element id, where to put the dialog; if not specified, we will create our own dialog window
backgroundColor | background color of the dialog window, e.g. "#f0f8ff"
eventHandler | a function for handling dialog events; can receive 3 arguments: node - a tree node of the dialog component; eventName - the event name (e.g., "Click") corresponding to Dialog Engine Metamodel; value - an event-specific value;