X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/src/tip/Tip.js diff --git a/src/tip/Tip.js b/src/tip/Tip.js index 8961cf6b..05bca691 100644 --- a/src/tip/Tip.js +++ b/src/tip/Tip.js @@ -1,12 +1,23 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** * @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', { @@ -63,6 +74,23 @@ Ext.define('Ext.tip.Tip', { focusOnToFront: false, componentLayout: 'tip', + /** + * @cfg {String} closeAction + *

The action to take when the close header tool is clicked: + *

+ *

Note: This behavior has changed! setting *does* affect the {@link #close} method + * which will invoke the approriate closeAction. + */ closeAction: 'hide', ariaRole: 'tooltip', @@ -134,3 +162,4 @@ tip.showBy('my-el', 'tl-tr'); ghost: undefined, unghost: undefined }); +