X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Tool.html diff --git a/docs/source/Tool.html b/docs/source/Tool.html index 018be2d0..ea829c6a 100644 --- a/docs/source/Tool.html +++ b/docs/source/Tool.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.panel.Tool
* @extends Ext.Component
@@ -37,7 +54,6 @@ __Example Usage__
});
* @markdown
- * @xtype tool
*/
Ext.define('Ext.panel.Tool', {
extend: 'Ext.Component',
@@ -51,7 +67,7 @@ Ext.define('Ext.panel.Tool', {
ariaRole: 'button',
renderTpl: ['<img src="{blank}" class="{baseCls}-{type}" role="presentation"/>'],
- /**
+ /**
* @cfg {Function} handler
* A function to execute when the tool is clicked.
* Arguments passed are:
@@ -63,12 +79,12 @@ Ext.define('Ext.panel.Tool', {
* </ul>
*/
- /**
+ /**
* @cfg {Object} scope
* The scope to execute the {@link #handler} function. Defaults to the tool.
*/
- /**
+ /**
* @cfg {String} type
* The type of tool to render. The following types are available:
* <ul>
@@ -100,12 +116,12 @@ Ext.define('Ext.panel.Tool', {
* </ul>
*/
- /**
+ /**
* @cfg {String/Object} tooltip
* The tooltip for the tool - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config object
*/
- /**
+ /**
* @cfg {Boolean} stopEvent
* Defaults to true. Specify as false to allow click event to propagate.
*/
@@ -114,7 +130,7 @@ Ext.define('Ext.panel.Tool', {
initComponent: function() {
var me = this;
me.addEvents(
- /**
+ /**
* @event click
* Fires when the tool is clicked
* @param {Ext.panel.Tool} this
@@ -152,7 +168,7 @@ Ext.define('Ext.panel.Tool', {
'up'
];
- if (me.id && Ext.Array.indexOf(types, me.id) > -1) {
+ if (me.id && Ext.Array.indexOf(types, me.id) > -1 && Ext.global.console) {
Ext.global.console.warn('When specifying a tool you should use the type option, the id can conflict now that tool is a Component');
}
//</debug>
@@ -192,7 +208,7 @@ Ext.define('Ext.panel.Tool', {
});
},
- /**
+ /**
* Set the type of the tool. Allows the icon to be changed.
* @param {String} type The new type. See the {@link #type} config.
* @return {Ext.panel.Tool} this
@@ -207,7 +223,7 @@ Ext.define('Ext.panel.Tool', {
return me;
},
- /**
+ /**
* Binds this tool to a component.
* @private
* @param {Ext.Component} component The component
@@ -216,7 +232,7 @@ Ext.define('Ext.panel.Tool', {
this.owner = component;
},
- /**
+ /**
* Fired when the tool element is clicked
* @private
* @param {Ext.EventObject} e
@@ -252,7 +268,7 @@ Ext.define('Ext.panel.Tool', {
this.callParent();
},
- /**
+ /**
* Called then the user pressing their mouse button down on a tool
* Adds the press class ({@link #toolPressedCls})
* @private
@@ -265,7 +281,7 @@ Ext.define('Ext.panel.Tool', {
this.el.addCls(this.toolPressedCls);
},
- /**
+ /**
* Called when the user rolls over a tool
* Adds the over class ({@link #toolOverCls})
* @private
@@ -277,7 +293,7 @@ Ext.define('Ext.panel.Tool', {
this.el.addCls(this.toolOverCls);
},
- /**
+ /**
* Called when the user rolls out from a tool.
* Removes the over class ({@link #toolOverCls})
* @private
@@ -285,4 +301,6 @@ Ext.define('Ext.panel.Tool', {
onMouseOut: function() {
this.el.removeCls(this.toolOverCls);
}
-});
\ No newline at end of file
+});
+
+