X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Tip3.html diff --git a/docs/source/Tip3.html b/docs/source/Tip3.html index d1d06dc4..1cfc7bf9 100644 --- a/docs/source/Tip3.html +++ b/docs/source/Tip3.html @@ -1,52 +1,66 @@ -
+ +/** - * @class Ext.tip.Tip + + + + +\ No newline at end of file +The source code + + + + + + +/** + * @class Ext.tip.Tip * @extends Ext.panel.Panel * This is the base class for {@link Ext.tip.QuickTip} and {@link Ext.tip.ToolTip} that provides the basic layout and * positioning that all tip-based classes require. This class can be used directly for simple, statically-positioned * tips that are displayed programmatically, or it can be extended to provide custom tip implementations. - * @constructor - * Create a new Tip - * @param {Object} config The configuration options * @xtype tip */ Ext.define('Ext.tip.Tip', { extend: 'Ext.panel.Panel', requires: [ 'Ext.layout.component.Tip' ], alternateClassName: 'Ext.Tip', - /** + /** * @cfg {Boolean} closable True to render a close tool button into the tooltip header (defaults to false). */ - /** + /** * @cfg {Number} width * Width in pixels of the tip (defaults to auto). Width will be ignored if it exceeds the bounds of * {@link #minWidth} or {@link #maxWidth}. The maximum supported value is 500. */ - /** + /** * @cfg {Number} minWidth The minimum width of the tip in pixels (defaults to 40). */ minWidth : 40, - /** + /** * @cfg {Number} maxWidth The maximum width of the tip in pixels (defaults to 300). The maximum supported value is 500. */ maxWidth : 300, - /** + /** * @cfg {Boolean/String} shadow True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" * for bottom-right shadow (defaults to "sides"). */ shadow : "sides", - /** + /** * @cfg {String} defaultAlign <b>Experimental</b>. The default {@link Ext.core.Element#alignTo} anchor position value * for this tip relative to its element of origin (defaults to "tl-bl?"). */ defaultAlign : "tl-bl?", - /** + /** * @cfg {Boolean} constrainPosition If true, then the tooltip will be automatically constrained to stay within * the browser viewport. Defaults to false. */ constrainPosition : true, - /** + /** * @inherited */ frame: false, @@ -63,6 +77,23 @@ Ext.define('Ext.tip.Tip', { focusOnToFront: false, componentLayout: 'tip', + /** + * @cfg {String} closeAction + * <p>The action to take when the close header tool is clicked: + * <div class="mdetail-params"><ul> + * <li><b><code>'{@link #destroy}'</code></b> : <div class="sub-desc"> + * {@link #destroy remove} the window from the DOM and {@link Ext.Component#destroy destroy} + * it and all descendant Components. The window will <b>not</b> be available to be + * redisplayed via the {@link #show} method. + * </div></li> + * <li><b><code>'{@link #hide}'</code></b> : <b>Default</b><div class="sub-desc"> + * {@link #hide} the window by setting visibility to hidden and applying negative offsets. + * The window will be available to be redisplayed via the {@link #show} method. + * </div></li> + * </ul></div> + * <p><b>Note:</b> This behavior has changed! setting *does* affect the {@link #close} method + * which will invoke the approriate closeAction. + */ closeAction: 'hide', ariaRole: 'tooltip', @@ -74,7 +105,7 @@ Ext.define('Ext.tip.Tip', { this.constrain = this.constrain || this.constrainPosition; }, - /** + /** * Shows this tip at the specified XY position. Example usage: * <pre><code> // Show the tip at x:50 and y:100 @@ -95,7 +126,7 @@ tip.showAt([50,100]); } }, - /** + /** * <b>Experimental</b>. Shows this tip at a position relative to another element using a standard {@link Ext.core.Element#alignTo} * anchor position value. Example usage: * <pre><code> @@ -113,7 +144,7 @@ tip.showBy('my-el', 'tl-tr'); this.showAt(this.el.getAlignToXY(el, pos || this.defaultAlign)); }, - /** + /** * @private * @override * Set Tip draggable using base Component's draggability @@ -134,4 +165,6 @@ tip.showBy('my-el', 'tl-tr'); ghost: undefined, unghost: undefined }); -