CURSOR = 'cursor',
DRAG_CURSOR = 'dragCursor',
HOST = 'host',
PARENT_NODE = 'parentNode',
PROXY = 'proxy',
PROXY_NODE = 'proxyNode',
RESIZE = 'resize',
RESIZE_PROXY = 'resize-proxy',
WRAPPER = 'wrapper',
/**
Adds a `proxyNode` attribute and resizes it instead of the actual node. __very similar to DDProxy__
var resize = new Y.Resize({
//Selector of the node to resize
node: '#demo'
});
resize.plug(Y.Plugin.ResizeProxy);
@class ResizeProxy
@module resize
@submodule resize-proxy
@constructor
@extends Plugin.Base
@namespace Plugin
*/
function ResizeProxy() {
}
Y.mix(ResizeProxy, {
ATTRS: {
/**
* The Resize proxy element.
*
* @attribute proxyNode
* @default Generated using an internal HTML markup
* @type String|Node
*/
proxyNode: {
valueFn: function() {
}
}
}
});
/**
* Template used to create the resize proxy.
*
* @property PROXY_TEMPLATE
* @type {String}
*/
initializer: function() {
var instance = this;
},
destructor: function() {
var instance = this;
},
_afterHostResizeEnd: function(event) {
var instance = this,
// reseting actXY from drag when drag end
// if proxy is true, hide it on resize end
},
_afterResizeStart: function(event) {
var instance = this;
},
_beforeHostResize: function(event) {
var instance = this,
// if proxy is true _syncProxyUI instead of _syncUI
},
/**
* Render the <a href="ResizeProxy.html#attr_proxyNode">proxyNode</a> element and
* make it sibling of the <a href="Resize.html#attr_node">node</a>.
*
* @method _renderProxy
* @protected
*/
_renderProxy: function() {
var instance = this,
);
}
},
/**
* Sync the proxy UI with internal values from
* <a href="ResizeProxy.html#property_info">info</a>.
*
* @method _syncProxyUI
* @protected
*/
_syncProxyUI: function() {
var instance = this,
}
});
Y.namespace('Plugin');