jQWidgets jqxDocking addWindow() Method
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 also can be expanded for displaying its content.
The addWindow() method is used for adding a new window to the specified jqxDocking.
$('#jqxDocking').jqxDocking('addWindow', 'windowId', 'mode', panel, position);
Parameters: This method accepts four parameters that are illustrated below.
- windowId: This is the id of a new window that is going to be added to the docking.
- mode: This is the mode of a new window. Its possible values are ‘default’, ‘docked’, and ‘floating’. This is an optional parameter.
- panel: This is the index of the panel. This is an optional parameter.
- position: This is the position i.e., index of the window into the panel. This is an optional parameter.
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” />
Example: The below example illustrates the jQWidgets jqxDocking addWindow() method. In the below example, a new window of id “Second_Window” has been added.