Open In App
Related Articles

jQWidgets jqxDocking mode Property

Like Article
Save Article
Report issue

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. Here 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 mode property is used for setting or getting the mode of the specified jqxDocking. This property accepts three possible values that are illustrated below:

  • ‘default’: Using this value, the user can drop each window inside any docking panel or outside the docking panels.
  • ‘docked’: Using this value, the user can drop each window just into the docking panels.
  • ‘floating’:  Using this value, the user can drop any window just outside of the docking panels.


  • For setting the mode property:

    $('#jqxDocking').jqxDocking({ mode: 'floating' });  
  • For getting the mode property:

    var mode = $('#jqxDocking').jqxDocking('mode');

Linked Files: Download  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/jqxdocking.js”></script> <script type=”text/javascript” src=”jqwidgets/jqxwindow.js”></script>

Example: The below example illustrates the jQWidgets mode property. In the below example, the value of the mode property has been set to ‘floating’.


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color: green;">
            jQWidgets jqxDocking mode Property
        <div id="jqx_Docking" style="margin: 25px;" 
                <div id="Window">
                        <h8>Content of the window</h8>
        <input type="button" style="margin: 29px;" 
               value="Value of the mode property"/>
        <div id="log"></div>
        <script type="text/javascript">
            $(document).ready(function () {
                    width: 250,
                    mode: 'floating'
                        width: 320
                    'click', function () {
                        var Value_of_mode =




Last Updated : 02 Nov, 2021
Like Article
Save Article
Share your thoughts in the comments
Similar Reads