<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
- <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
</script>
</head>
<body onload="prettyPrint(); highlight();">
- <pre class="prettyprint lang-js"><span id='Ext-toolbar-Toolbar-Button'>/**
-</span> * @ignore
- */
-// backwards compat
+ <pre class="prettyprint lang-js">// backwards compat
Ext.toolbar.Toolbar.Button = Ext.extend(Ext.button.Button, {});
Ext.toolbar.Toolbar.SplitButton = Ext.extend(Ext.button.Split, {});
Ext.reg('tbbutton', Ext.toolbar.Toolbar.Button);
Ext.reg('tbsplit', Ext.toolbar.Toolbar.SplitButton);
-<span id='Ext-toolbar-Toolbar-Button-property-override'>/**
-</span> * @ignore
+/*
+ * @ignore
*/
Ext.toolbar.Toolbar.override({
-<span id='Ext-toolbar-Toolbar-Button-method-addText'> /**
-</span> * Adds text to the toolbar
+ /*
+ * Adds text to the toolbar
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
* @param {String} text The text to add
- * @return {Ext.Toolbar.Item} The element's item
+ * @return {Ext.toolbar.Item} The element's item
*/
addText : function(text){
return this.addItem(new Ext.Toolbar.TextItem(text));
},
-<span id='Ext-toolbar-Toolbar-Button-method-addDom'> /**
-</span> * Adds a new element to the toolbar from the passed {@link Ext.core.DomHelper} config
+ /*
+ * Adds a new element to the toolbar from the passed {@link Ext.DomHelper} config
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
* @param {Object} config
- * @return {Ext.Toolbar.Item} The element's item
+ * @return {Ext.toolbar.Item} The element's item
*/
addDom : function(config){
return this.add(new Ext.Toolbar.Item({autoEl: config}));
},
-<span id='Ext-toolbar-Toolbar-Button-method-addField'> /**
-</span> * Adds a dynamically rendered Ext.form field (Text, ComboBox, etc). Note: the field should not have
+ /*
+ * Adds a dynamically rendered Ext.form field (Text, ComboBox, etc). Note: the field should not have
* been rendered yet. For a field that has already been rendered, use {@link #addElement}.
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
* @param {Ext.form.field.Field} field
- * @return {Ext.Toolbar.Item}
+ * @return {Ext.toolbar.Item}
*/
addField : function(field){
return this.add(field);
},
-<span id='Ext-toolbar-Toolbar-Button-method-insertButton'> /**
-</span> * Inserts any {@link Ext.toolbar.Item}/{@link Ext.button.Button} at the specified index.
+ /*
+ * Inserts any {@link Ext.toolbar.Item}/{@link Ext.button.Button} at the specified index.
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
* @param {Number} index The index where the item is to be inserted
- * @param {Object/Ext.Toolbar.Item/Ext.button.Button/Array} item The button, or button config object to be
+ * @param {Object/Ext.toolbar.Item/Ext.button.Button/Object[]} item The button, or button config object to be
* inserted, or an array of buttons/configs.
- * @return {Ext.button.Button/Item}
+ * @return {Ext.button.Button/Ext.toolbar.Item}
*/
insertButton : function(index, item){
if(Ext.isArray(item)){
return Ext.toolbar.Toolbar.superclass.insert.call(this, index, item);
},
-<span id='Ext-toolbar-Toolbar-Button-method-addSeparator'> /**
-</span> * Adds a separator
+ /*
+ * Adds a separator
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
* @return {Ext.toolbar.Item} The separator {@link Ext.toolbar.Item item}
*/
return this.add(new Ext.toolbar.Separator());
},
-<span id='Ext-toolbar-Toolbar-Button-method-addSpacer'> /**
-</span> * Adds a spacer element
+ /*
+ * Adds a spacer element
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
- * @return {Ext.Toolbar.Spacer} The spacer item
+ * @return {Ext.toolbar.Spacer} The spacer item
*/
addSpacer : function(){
return this.add(new Ext.Toolbar.Spacer());
},
-<span id='Ext-toolbar-Toolbar-Button-method-addFill'> /**
-</span> * Forces subsequent additions into the float:right toolbar
+ /*
+ * Forces subsequent additions into the float:right toolbar
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
*/
addFill : function(){
this.add(new Ext.Toolbar.Fill());
},
-<span id='Ext-toolbar-Toolbar-Button-method-addElement'> /**
-</span> * Adds any standard HTML element to the toolbar
+ /*
+ * Adds any standard HTML element to the toolbar
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
- * @param {Mixed} el The element or id of the element to add
- * @return {Ext.Toolbar.Item} The element's item
+ * @param {String/HTMLElement/Ext.Element} el The element or id of the element to add
+ * @return {Ext.toolbar.Item} The element's item
*/
addElement : function(el){
return this.addItem(new Ext.Toolbar.Item({el:el}));
},
-<span id='Ext-toolbar-Toolbar-Button-method-addItem'> /**
-</span> * Adds any Toolbar.Item or subclass
+ /*
+ * Adds any Toolbar.Item or subclass
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
- * @param {Ext.Toolbar.Item} item
- * @return {Ext.Toolbar.Item} The item
+ * @param {Ext.toolbar.Item} item
+ * @return {Ext.toolbar.Item} The item
*/
addItem : function(item){
return this.add.apply(this, arguments);
},
-<span id='Ext-toolbar-Toolbar-Button-method-addButton'> /**
-</span> * Adds a button (or buttons). See {@link Ext.button.Button} for more info on the config.
+ /*
+ * Adds a button (or buttons). See {@link Ext.button.Button} for more info on the config.
* <br><p><b>Note</b>: See the notes within {@link Ext.container.Container#add}.</p>
- * @param {Object/Array} config A button config or array of configs
- * @return {Ext.button.Button/Array}
+ * @param {Object/Object[]} config A button config or array of configs
+ * @return {Ext.button.Button/Ext.button.Button[]}
*/
addButton : function(config){
if(Ext.isArray(config)){