.resizable()
Categories: UI
.resizable( [ options ] )
Plugin: jQuery.ui.resizable
Description: Apply the Resizable widget for each element in the set of matched elements
-
.resizable( [ options ] )
version added: 1.0options A map of additional options pass to the widget.
The jQuery UI Resizable plugin makes selected elements resizable (meaning they have draggable resize handles). You can specify one or more handles as well as min and max width and height.
All callbacks (start,stop,resize) receive two arguments: The original browser event and a prepared ui object. The ui object has the following fields:
- ui.helper - a jQuery object containing the helper element
- ui.originalPosition - {top, left} before resizing started
- ui.originalSize - {width, height} before resizing started
- ui.position - {top, left} current position
- ui.size - {width, height} current size
-
create
This event is triggered when resizable is created.
-
start
This event is triggered at the start of a resize operation.
-
resize
This event is triggered during the resize, on the drag of the resize handler.
-
stop
This event is triggered at the end of a resize operation.
-
destroy
-
.resizable( "destroy" )
version added: 1.0
Remove the resizable functionality completely. This will return the element back to its pre-init state.
-
-
disable
-
.resizable( "disable" )
version added: 1.0
Disable the resizable.
-
-
enable
-
.resizable( "enable" )
version added: 1.0
Enable the resizable.
-
-
option
-
.resizable( "option" , optionName , [value] )
version added: 1.0
Get or set any resizable option. If no value is specified, will act as a getter.
-
-
option
-
.resizable( "option" , options )
version added: 1.0
Set multiple resizable options at once by providing an options object.
-
-
widget
-
.resizable( "widget" )
version added: 1.0
Returns the .ui-resizable element.
-