jQWidgets jqxDocking setWindowMode() 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 setWindowMode() method is used for setting mode to a window of the specified jqxDocking.
$('#jqxDocking').jqxDocking('setWindowMode', windowId, mode);
Parameters: This method accepts two parameters that are illustrated below.
- windowId: This is the id of a window for which mode is being set.
- mode: This is the specified mode. Its possible values are ‘default‘ or ‘float‘.
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 setWindowMode() method. In the below example, the mode of the window was ‘floating’ then later after invoking setWindowMode() method, the mode of the window has been changed to ‘default’.