jQuery: The Write Less, Do More JavaScript Library

UI/Resizables

From jQuery JavaScript Library

Jump to: navigation, search

« Back to the jQuery UI Docs

NameType
Dependencies:

  • ui.base.js

NameType

NameType
Plugin methods:



NameType
resizable( options )
Creates new resizables on the nodeset supplied by the query.
resizable( "disable" ) Returns: jQuery
Temporarily disable the resizable functionality.
resizable( "enable" ) Returns: jQuery
Enable the resizable functionality.
resizable( "destroy" ) Returns: jQuery
Completely remove the resizable functionality.

NameType
Example:
A simple jQuery UI Resizable.

$("#example").resizable();

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  
  <script>
  $(document).ready(function(){
    $("#example").resizable();
  });
  </script>
  <style>div { width: 150px; height: 100px; }</style>
</head>
<body>
  <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">
<script  src="http://dev.jquery.com/view/trunk/ui/ui.base.js"></script>
<script  src="http://dev.jquery.com/view/trunk/ui/ui.resizable.js"></script>
<div id='example' class="ui-wrapper example">
<div style='position: absolute; top: 20px; left: 20px; bottom: 20px; right: 20px;'>Resize me</div>
</div>

</body>
</html>

NameType

NameType
Demos:

NameType