Open In App

jQuery UI Resizable stop Events

jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add widgets easily.

In this article, we are going to learn the jQuery Mobile Resizable stop Events. This event is triggered at the end of a resize operation



Syntax:

Initialize the collapsible with the create callback specified.



$( ".selector" ).resizable({ stop: function( event, ui ) {} });

Parameters: These are the following parameters that are accepted:

CDN Links: Add the following jQuery Mobile scripts that you will need in your project.

<link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css”>
<script src=”//code.jquery.com/ui/1.12.1/jquery-ui.js”></script>
<script src=”//code.jquery.com/jquery-1.12.4.js”></script>

Example: This example describes the uses of the jQuery UI Resizable stop Events.




<!doctype html>
<html lang="en">
<head>
    <link rel="stylesheet" href=
    <script src=
    <script src=
    </script>
    <style>
        h1 {
            color: green;
        }
  
        .container {
            width: 320px;
        }
  
        #resizable-div {
            width: 300px;
            height: 150px;
            text-align: center;
            border: 2px solid black;
        }
    </style>
    <script>
        $(function () {
            $( "#resizable-div" ).resizable({
                stop: function( event, ui ) {
                    $("#gfg").html("Resizable Widget has been Stopped");
                }
            });
        });
  
        $(function () {
            $("#resizable-div").resizable();
            $("#resizable-div").resizable('enable');
        });
    </script>
</head>
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h3>jQuery UI Resizable stop Events</h3>
  
        <div class="container">
            <div id="resizable-div">
                <h3 class="gfg"></h3>
            </div>
        </div>
        <br>
        <h4><span id="gfg"></span></h4>
    </center>
</body>
</html>

Output:

jQuery UI Resizable stop Events

References: https://api.jqueryui.com/resizable/#event-stop


Article Tags :