Open In App

jQWidgets jqxDocking pinWindow() Method

Last Updated : 31 Oct, 2021
Like Article

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 also can be expanded for displaying its content.

The pinWindow() method is used for pinning a window of the specified jqxDocking.


$('#jqxDocking').jqxDocking('pinWindow', 'windowId');


Parameters: This method accepts a parameter that is illustrated below.

  • windowId: This is the id of a window that will be pinned.

Return values: This method does not return any value.

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

Example: The below example illustrates the jQWidgets jqxDocking pinWindow() method. In the below example, after invoking the pinWindow() method, the window will be pinned and will not be dragged anywhere.


<!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 pinWindow() Method
        <div id="jqx_Docking" style="margin:25px;" align="left">
                <div id="Window">
                        <h8>Content for the window</h8>
        <input type="button" style="margin:29px;" 
               value="Pin the above window"/>
        <script type="text/javascript">
            $(document).ready(function () {
                    width: 250
                        width: 180
                    'click', function () {
                            'pinWindow', 'Window');



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads