ConsoleClosed: function (sender, args);
sender. Event source.
args. Event information.
The ConsoleClosed event occurs on console closing.
A console combines the Header and Details panels.
To execute the example, the HTML page must contain the SlidePanel component named slidePanel (see Example of Creating the SlidePanel Component).
//Create a button that opens the console:
var button = new PP.Ui.Button({ Content: "Open console" });
button.Click.add(function (sender, args) {
slidePanel.setIsConsoleClosed(false)
});
//Add an event handler that handlees console closing
slidePanel.ConsoleClosed.add(function (sender, args) {
slidePanel.setViewContent(button)
});
//Add an event handler that handlees console opening
slidePanel.ConsoleOpened.add(function (sender, args) {
alert("The console is opened")
});
After executing the example on closing the console, the View panel displays a button clicking which opens the console. On opening the console The console is opened message is displayed to the screen.
See also: