Kap.Dashboard.dispose

Syntax

dispose ();

Description

The dispose method removes an instance of open dashboard from the page.

Example

To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "but" identifier. Add a button clicking which will remove dashboard constructor from the page:

            var disposeButton = new PP.Ui.Button({
                ParentNode: "but",
                Content: "Remove",
                Click: function () {
                    kapBox.dispose();
                }
            });

After executing the example the Delete button is added in the page. Clicking this button removes dashboard constructor from the page.

See also:

Kap.Dashboard