class
SAPO.Component.Resizable
Defined in
Component/Resizable/0.1/lib.js
Constructor Summary
Constructor Details
constructor Resizable
Resizable(String|DOMElement
element, [Object
options])
Parameters:
element
- target element
[options]
- options object -
[ Array containers ]
- elements which dimensions get updated on end... -
[ String constrain ]
- 'both', 'horizontal', 'vertical' (defaults to 'both') -
[ Number minWidth ]
- minimum width the object can have -
[ Number minHeight ]
- minimum height the object can have -
[ String|DOMElement handler ]
- if specified, only this element will be used for dragging resizing of the whole target element -
[ Boolean useFrame ]
- uses a preview element during transformation (default = true) -
[ String previewClass ]
- CSS class name to apply to the preview element while resizing -
[ Function onClick ]
- callback called when the object is clicked -
[ Function onStart ]
- callback called when dragging starts -
[ Function onDrag ]
- callback called while dragging -
[ Function onEnd ]
- callback called when dragging stops
requires SAPO.Dom.Event
requires SAPO.Dom.Element
requires SAPO.Dom.Css
requires SAPO.Dom.Selector
requires SAPO.Utility.Dimensions
turns a element into a resizable object