![]() |
VOOZH | about |
jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxDocking is used for representing a widget to manage multiple windows and also the layout of a web page.
Each window in the specified jqxDocking can do multiple tasks such as it can be dragged around the web page, docked into docking zones, removed from the docking, collapsed into a minimized state for hiding its content, and can be expanded for displaying its content.
The closeWindow() method is used for closing a specific window of the specified jqxDocking.
Syntax:
$('#jqxDocking').jqxDocking('closeWindow', 'windowId');
Parameters: This method accepts a parameter that is illustrated below.
Return values: This method does not return any values.
Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.
<link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript" src="jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="jqwidgets/jqx-all.js"></script> <script type="text/javascript" src="jqwidgets/jqxdocking.js"></script>
Example: The below example illustrates the jQWidgets jqxDocking closeWindow() method. In the below example, a window of id "Second_Window" has been closed.
Output:
👁 Image