[Config Option] (String[])
[Property] (Array)
[Config Option] (String/String[])
[Config Option] (Object)
[Property] (Object)
[Config Option] (String)
[Property] (Boolean)
[Property] (Boolean)
[Config Option] (String)
[Config Option] (String)
[Property] (Boolean)
[Config Option] (Object[])
[Property] (Object)
[Config Option] (Object)
[Property] (Array)
[Property] (Array)
[Property] (Number)
[Property] (Object)
[Config Option] (Object)
[Config Option] (Object)
[Property] (Ext.Class)
[Config Option] (Boolean)
[Config Option] (String)
[Property] (Boolean)
[Config Option] (Object[])
[Config Option] (Object)
[Config Option] (String[])
[Method] Adds an item to the collection
String The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter.
Object The item to add.
any
Object The item added.
[Method] Adds all elements of an Array or an Object to the collection
Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if {@link} Ext.util.MixedCollection.allowFunctions allowFunctions} has been set to true.
[Method] This method adds a filter
Ext.util.Sorter/Function/Object Can be an instance of Ext.util.Filter, an object representing an Ext.util.Filter configuration, or a filter function.
[Method] This method adds all the filters in a passed array
Object
any
Object
[Method] This method adds a sorter
Ext.util.Sorter/String/Function/Object Can be an instance of Ext.util.Sorter, a string indicating a property name, an object representing an Ext.util.Sorter configuration, or a sort function.
String The default direction for each sorter in the array. Defaults to the value of defaultSortDirection. Can be either 'ASC' or 'DESC'.
[Method] This method adds all the sorters in a passed array
Array An array with sorters. A sorter can be an instance of Ext.util.Sorter, a string indicating a property name, an object representing an Ext.util.Sorter configuration, or a sort function.
String The default direction for each sorter in the array. Defaults to the value of defaultSortDirection. Can be either 'ASC' or 'DESC'.
[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)
any
Object Returns the result of calling the overridden method
[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)
any
Object Returns the result of calling the overridden method
[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)
any
Object Returns the result of calling the overridden method
[Method] Call the parent method of the current method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)
any
Object Returns the result of calling the parent method
[Method] Call the parent method of the current method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)
any
Object Returns the result of calling the parent method
[Method] Call the parent method of the current method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)
any
Object Returns the result of calling the parent method
[Method] This method is used by an override to call the superclass method but bypass any overridden method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)
any
Object Returns the result of calling the superclass method
[Method] This method is used by an override to call the superclass method but bypass any overridden method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)
any
Object Returns the result of calling the superclass method
[Method] This method is used by an override to call the superclass method but bypass any overridden method
Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)
any
Object Returns the result of calling the superclass method
[Method] Removes all items from the collection
[Method] Creates a shallow copy of this collection
Ext.util.MixedCollection
[Method] Returns true if the collection contains the passed Object as an item
Object The Object to look for in the collection.
boolean
Boolean true if the collection contains the Object as an item.
[Method] Returns true if the collection contains the passed Object as a key
String The key to look for in the collection.
boolean
Boolean true if the collection contains the Object as a key.
[Method]
[Method] Executes the specified function once for every item in the collection
Function The function to execute for each item.
Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration.
[Method] Executes the specified function once for every key in the collection passing each key and its associated item as th
Function The function to execute for each item.
Object The scope (this reference) in which the function is executed. Defaults to the browser window.
[Method] This method will sort a collection based on the currently configured sorters
Object
Object
Object
Object
Array<any>
Array
[Method] Filter by a function
Function The function to be called.
Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection.
Ext.util.MixedCollection The new filtered collection
[Method] Returns the first item in the collection which elicits a true return value from the passed selection function
Function The selection function to execute for each item.
Object The scope (this reference) in which the function is executed. Defaults to the browser window.
any
Object The first item in the collection which returned true from the selection function.
[Method] Find the index of the first matching object in this collection by a function
Function The function to be called.
Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection.
Number The index to start searching at.
number
Number The matched index, or -1 if the item was not found.
[Method] This method returns the index that a given item would be inserted into a given array based on the current sorters
Array The array that you want to insert the item into.
Mixed The item that you want to insert into the items array.
number
Number The index for the given item in the given array based on the current sorters.
[Method] Returns the first item in the collection
any
Object the first item in the collection.
[Method] Returns the item associated with the passed key OR index
String/Number The key or index of the item.
any
Object If the item is found, returns the item. If the item was not found, returns undefined. If an item was found, but is a Class, returns null.
[Method] Returns the item at the specified index
Number The index of the item.
any
Object The item at the specified index.
[Method] Returns the value of autoFilter
boolean
Boolean
[Method] Returns the value of autoSort
boolean
Boolean
[Method] Returns the item associated with the passed key
String/Number The key of the item.
any
Object The item associated with the passed key.
[Method] Returns the number of items in the collection
number
Number the number of items in the collection.
[Method] Returns the value of defaultSortDirection
string
String
[Method] Returns an up to date sort function
any
Function sortFn The sort function.
[Method] Returns the value of filterRoot
string
String
[Method] Returns the value of filters
Array<any>
Array
[Method] Returns the initial configuration passed to constructor
String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.
any
Object/Mixed
[Method] Returns the initial configuration passed to constructor
String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.
any
Object/Mixed
[Method] Returns the initial configuration passed to constructor
String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.
any
Object/Mixed
[Method] MixedCollection has a generic way to fetch keys if you implement getKey
Object The item for which to find the key.
any
Object The key for the passed item.
[Method] Returns a range of items in this collection
Number The starting index.
Number The ending index. Defaults to the last item.
Array<any>
Array An array of items.
[Method] Returns an up to date sort function
any
Function The sort function.
[Method] Returns the value of sortRoot
string
String
[Method] Returns the value of sorters
Array<any>
Array
[Method] Returns index within the collection of the passed Object
Object The item to find the index of.
number
Number Index of the item. Returns -1 if not found.
[Method] Returns index within the collection of the passed key
String The key to find the index of.
number
Number Index of the key.
[Method] Initialize configuration for this class
Object
any
Object mixins The mixin prototypes as key - value pairs
[Method] Initialize configuration for this class
Object
any
Object mixins The mixin prototypes as key - value pairs
[Method] Initialize configuration for this class
Object
any
Object mixins The mixin prototypes as key - value pairs
[Method] Inserts an item at the specified index in the collection
Number The index to insert the item at.
String The key to associate with the new item, or the item itself.
Object If the second parameter was a key, the new item.
any
Object The item inserted.
[Method] This method adds a filter at a given index
Number The index at which to insert the filter.
Ext.util.Sorter/Function/Object Can be an instance of Ext.util.Filter, an object representing an Ext.util.Filter configuration, or a filter function.
any
Object
[Method] This method inserts all the filters in the passed array at the given index
Number The index at which to insert the filters.
Array Each filter can be an instance of Ext.util.Filter, an object representing an Ext.util.Filter configuration, or a filter function.
Array<any>
Array
[Method] This method adds a sorter at a given index
Number The index at which to insert the sorter.
Ext.util.Sorter/String/Function/Object Can be an instance of Ext.util.Sorter, a string indicating a property name, an object representing an Ext.util.Sorter configuration, or a sort function.
String The default direction for each sorter in the array. Defaults to the value of defaultSortDirection. Can be either 'ASC' or 'DESC'.
[Method] This method inserts all the sorters in the passed array at the given index
Ext.util.Collection this
[Method] Returns the last item in the collection
any
Object the last item in the collection.
[Method] Remove an item from the collection
Object The item to remove.
any
Object The item removed or false if no item was removed.
[Method] Remove all items in the passed array from the collection
Array An array of items to be removed.
Ext.util.MixedCollection this object
[Method] Remove an item from a specified index in the collection
Number The index within the collection of the item to remove.
any
Object The item removed or false if no item was removed.
[Method] Removed an item associated with the passed key from the collection
String The key of the item to remove.
any
Object/Boolean The item removed or false if no item was removed.
[Method] This method removes all the filters in a passed array
Object
Ext.util.Collection this
[Method] This method removes a sorter
Ext.util.Sorter/String/Function/Object Can be an instance of Ext.util.Sorter, a string indicating a property name, an object representing an Ext.util.Sorter configuration, or a sort function.
[Method] This method removes all the sorters in a passed array
Object
Ext.util.Collection this
[Method] Replaces an item in the collection
String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter.
Object {Object} item (optional) If the first parameter passed was a key, the item to associate with that key.
any
Object The new item.
[Method] Sets the value of autoFilter
Boolean
[Method] Sets the value of autoSort
Boolean
[Method] Sets the value of defaultSortDirection
String
[Method] Sets the value of filterRoot
String
[Method] Sets the value of filters
Array
[Method] Sets the value of sortRoot
String
[Method] Sets the value of sorters
Array
[Method] This method will sort an array based on the currently configured sorters
Object
Object
Array<any>
Array The array you passed after it is sorted.