Interface IItemCollection

Hierarchy

Index

Properties

Methods

Properties

optional public alias?: Array<string>

[Config Option] (String[])

optional public allowFunctions?: boolean

[Config Option] (Boolean)

optional public alternateClassName?: any

[Config Option] (String/String[])

optional public bubbleEvents?: any

[Config Option] (String/String[])

optional public config?: any

[Config Option] (Object)

optional public defaultSortDirection?: string

[Property] (String)

optional public extend?: string

[Config Option] (String)

optional public inheritableStatics?: any

[Config Option] (Object)

optional public isSortable?: boolean

[Property] (Boolean)

optional public listeners?: any

[Config Option] (Object)

optional public mixins?: any

[Config Option] (Object)

optional public platformConfig?: any

[Config Option] (Object)

optional public self?: IClass

[Property] (Ext.Class)

optional public singleton?: boolean

[Config Option] (Boolean)

optional public sortRoot?: string

[Property] (String)

optional public sorters?: IMixedCollection

[Property] (Ext.util.MixedCollection)

optional public statics?: any

[Config Option] (Object)

optional public uses?: Array<string>

[Config Option] (String[])

Methods

optional public add(key?: string, obj?: any): any

[Method] Adds an item to the collection

Parameters

  • key?: string optional

    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.

  • obj?: any optional

    Object The item to add.

Returns

any

Object The item added.

optional public addAfterListener(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Appends an after event handler

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for.

  • fn?: any optional

    Function/String The method the event invokes.

  • scope?: any optional

    Object The scope for fn.

  • options?: any optional

    Object An object containing handler configuration.

optional public addAll(objs?: any)

[Method] Adds all elements of an Array or an Object to the collection

Parameters

  • objs?: any optional

    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 allowFunctions has been set to true.

optional public addBeforeListener(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Appends a before event handler

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for.

  • fn?: any optional

    Function/String The method the event invokes.

  • scope?: any optional

    Object The scope for fn.

  • options?: any optional

    Object An object containing handler configuration.

optional public addEvents(eventNames?: any)

[Method] Adds the specified events to the list of events which this Observable may fire

Parameters

  • eventNames?: any optional

    Object/String... Either an object with event names as properties with a value of true or the first event name string if multiple event names are being passed as separate parameters.

optional public addListener(eventName?: any, fn?: any, scope?: any, options?: any, order?: string)

[Method] Appends an event handler to this object

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for. May also be an object who's property names are event names.

  • fn?: any optional

    Function/String The method the event invokes. Will be called with arguments given to fireEvent plus the options parameter described below.

  • scope?: any optional

    Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event.

  • options?: any optional

    Object An object containing handler configuration. This object may contain any of the following properties:

  • order?: string optional

    String The order of when the listener should be added into the listener queue. Possible values are before, current and after.

optional public addManagedListener(object?: any, eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Adds listeners to any Observable object or Element which are automatically removed when this Component is destroyed

Parameters

  • object?: any optional

    Ext.mixin.Observable/HTMLElement The item to which to add a listener/listeners.

  • eventName?: any optional

    Object/String The event name, or an object containing event name properties.

  • fn?: any optional

    Function If the eventName parameter was an event name, this is the handler function.

  • scope?: any optional

    Object If the eventName parameter was an event name, this is the scope in which the handler function is executed.

  • options?: any optional

    Object If the eventName parameter was an event name, this is the addListener options.

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public clear()

[Method] Removes all items from the collection

optional public clearListeners()

[Method] Removes all listeners for this object

optional public clone(): IMixedCollection

[Method] Creates a shallow copy of this collection

Returns

IMixedCollection

Ext.util.MixedCollection

optional public collect(property?: string, root?: string, allowNull?: boolean): Array<any>

[Method] Collects unique values of a particular property in this MixedCollection

Parameters

  • property?: string optional

    String The property to collect on.

  • root?: string optional

    String Optional 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the data object.

  • allowNull?: boolean optional

    Boolean Pass true to allow null, undefined, or empty string values.

Returns

Array<any>

Array The unique values.

optional public contains(o?: any): boolean

[Method] Returns true if the collection contains the passed Object as an item

Parameters

  • o?: any optional

    Object The Object to look for in the collection.

Returns

boolean

Boolean true if the collection contains the Object as an item.

optional public containsKey(key?: string): boolean

[Method] Returns true if the collection contains the passed Object as a key

Parameters

  • key?: string optional

    String The key to look for in the collection.

Returns

boolean

Boolean true if the collection contains the Object as a key.

optional public destroy()

[Method]

optional public each(fn?: any, scope?: any)

[Method] Executes the specified function once for every item in the collection

Parameters

  • fn?: any optional

    Function The function to execute for each item.

  • scope?: any optional

    Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration.

optional public eachKey(fn?: any, scope?: any)

[Method] Executes the specified function once for every key in the collection passing each key and its associated item as th

Parameters

  • fn?: any optional

    Function The function to execute for each item.

  • scope?: any optional

    Object The scope (this reference) in which the function is executed. Defaults to the browser window.

optional public enableBubble(events?: any)

[Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present

Parameters

  • events?: any optional

    String/String[] The event name to bubble, or an Array of event names.

optional public filter(property?: any, value?: any, anyMatch?: boolean, caseSensitive?: boolean): IMixedCollection

[Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete

Parameters

  • property?: any optional

    Ext.util.Filter[]/String A property on your objects, or an array of Filter objects

  • value?: any optional

    String/RegExp Either string that the property values should start with or a RegExp to test against the property.

  • anyMatch?: boolean optional

    Boolean true to match any part of the string, not just the beginning

  • caseSensitive?: boolean optional

    Boolean true for case sensitive comparison.

Returns

IMixedCollection

Ext.util.MixedCollection The new filtered collection

optional public filterBy(fn?: any, scope?: any): IMixedCollection

[Method] Filter by a function

Parameters

  • fn?: any optional

    Function The function to be called, it will receive the args o (the object), k (the key)

  • scope?: any optional

    Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection.

Returns

IMixedCollection

Ext.util.MixedCollection The new filtered collection.

optional public findBy(fn?: any, scope?: any): any

[Method] Returns the first item in the collection which elicits a true return value from the passed selection function

Parameters

  • fn?: any optional

    Function The selection function to execute for each item.

  • scope?: any optional

    Object The scope (this reference) in which the function is executed. Defaults to the browser window.

Returns

any

Object The first item in the collection which returned true from the selection function.

optional public findIndex(property?: string, value?: any, start?: number, anyMatch?: boolean, caseSensitive?: boolean): number

[Method] Finds the index of the first matching object in this collection by a specific property value

Parameters

  • property?: string optional

    String The name of a property on your objects.

  • value?: any optional

    String/RegExp A string that the property values. should start with or a RegExp to test against the property.

  • start?: number optional

    Number The index to start searching at.

  • anyMatch?: boolean optional

    Boolean true to match any part of the string, not just the beginning.

  • caseSensitive?: boolean optional

    Boolean true for case sensitive comparison.

Returns

number

Number The matched index or -1.

optional public findIndexBy(fn?: any, scope?: any, start?: number): number

[Method] Find the index of the first matching object in this collection by a function

Parameters

  • fn?: any optional

    Function The function to be called, it will receive the args o (the object), k (the key).

  • scope?: any optional

    Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection.

  • start?: number optional

    Number The index to start searching at.

Returns

number

Number The matched index or -1.

optional public fireAction(eventName?: string, args?: Array<any>, fn?: any, scope?: any): any

[Method] Fires the specified event with the passed parameters and execute a function action at the end if there are no liste

Parameters

  • eventName?: string optional

    String The name of the event to fire.

  • args?: Array<any> optional

    Array Arguments to pass to handers.

  • fn?: any optional

    Function Action.

  • scope?: any optional

    Object Scope of fn.

Returns

any

Object

optional public fireEvent(eventName: string, args?: Array<any>): boolean

[Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList

Parameters

  • eventName: string

    String The name of the event to fire.

  • args?: Array<any> optional

    Object... Variable number of parameters are passed to handlers.

Returns

boolean

Boolean Returns false if any of the handlers return false.

optional public first(): any

[Method] Returns the first item in the collection

Returns

any

Object the first item in the collection..

optional public get(key?: any): any

[Method] Returns the item associated with the passed key OR index

Parameters

  • key?: any optional

    String/Number The key or index of the item.

Returns

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.

optional public getAt(index?: number): any

[Method] Returns the item at the specified index

Parameters

  • index?: number optional

    Number The index of the item.

Returns

any

Object The item at the specified index.

optional public getBubbleEvents(): any

[Method] Returns the value of bubbleEvents

Returns

any

String/String[]

optional public getByKey(key?: any): any

[Method] Returns the item associated with the passed key

Parameters

  • key?: any optional

    String/Number The key of the item.

Returns

any

Object The item associated with the passed key.

optional public getCount(): number

[Method] Returns the number of items in the collection

Returns

number

Number the number of items in the collection.

optional public getId(): any

[Method] Retrieves the id of this component

Returns

any

any id

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public getKey(item?: any): any

[Method] MixedCollection has a generic way to fetch keys if you implement getKey

Parameters

  • item?: any optional

    Object

Returns

any

Object The key for the passed item.

optional public getListeners(): any

[Method] Returns the value of listeners

Returns

any

Object

optional public getRange(start?: number, end?: number): Array<any>

[Method] Returns a range of items in this collection

Parameters

  • start?: number optional

    Number The starting index.

  • end?: number optional

    Number The ending index.

Returns

Array<any>

Array An array of items

optional public hasListener(eventName?: string): boolean

[Method] Checks to see if this object has any listeners for a specified event

Parameters

  • eventName?: string optional

    String The name of the event to check for

Returns

boolean

Boolean True if the event is being listened for, else false

optional public indexOf(o?: any): number

[Method] Returns index within the collection of the passed Object

Parameters

  • o?: any optional

    Object The item to find the index of.

Returns

number

Number index of the item. Returns -1 if not found.

optional public indexOfKey(key?: string): number

[Method] Returns index within the collection of the passed key

Parameters

  • key?: string optional

    String The key to find the index of.

Returns

number

Number The index of the key.

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public initSortable()

[Method] Performs initialization of this mixin

optional public insert(index?: number, key?: string, obj?: any): any

[Method] Inserts an item at the specified index in the collection

Parameters

  • index?: number optional

    Number The index to insert the item at.

  • key?: string optional

    String The key to associate with the new item, or the item itself.

  • obj?: any optional

    Object If the second parameter was a key, the new item.

Returns

any

Object The item inserted.

optional public last(): any

[Method] Returns the last item in the collection

Returns

any

Object the last item in the collection..

optional public mon(object?: any, eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Alias for addManagedListener

Parameters

  • object?: any optional

    Ext.mixin.Observable/HTMLElement The item to which to add a listener/listeners.

  • eventName?: any optional

    Object/String The event name, or an object containing event name properties.

  • fn?: any optional

    Function If the eventName parameter was an event name, this is the handler function.

  • scope?: any optional

    Object If the eventName parameter was an event name, this is the scope in which the handler function is executed.

  • options?: any optional

    Object If the eventName parameter was an event name, this is the addListener options.

optional public mun(object?: any, eventName?: any, fn?: any, scope?: any)

[Method] Alias for removeManagedListener

Parameters

  • object?: any optional

    Ext.mixin.Observable/HTMLElement The item to which to add a listener/listeners.

  • eventName?: any optional

    Object/String The event name, or an object containing event name properties.

  • fn?: any optional

    Function If the eventName parameter was an event name, this is the handler function.

  • scope?: any optional

    Object If the eventName parameter was an event name, this is the scope in which the handler function is executed.

optional public on(eventName?: any, fn?: any, scope?: any, options?: any, order?: string)

[Method] Alias for addListener

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for. May also be an object who's property names are event names.

  • fn?: any optional

    Function/String The method the event invokes. Will be called with arguments given to fireEvent plus the options parameter described below.

  • scope?: any optional

    Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event.

  • options?: any optional

    Object An object containing handler configuration. This object may contain any of the following properties:

  • order?: string optional

    String The order of when the listener should be added into the listener queue. Possible values are before, current and after.

optional public onAfter(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Alias for addAfterListener

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for.

  • fn?: any optional

    Function/String The method the event invokes.

  • scope?: any optional

    Object The scope for fn.

  • options?: any optional

    Object An object containing handler configuration.

optional public onBefore(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Alias for addBeforeListener

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event to listen for.

  • fn?: any optional

    Function/String The method the event invokes.

  • scope?: any optional

    Object The scope for fn.

  • options?: any optional

    Object An object containing handler configuration.

optional public relayEvents(object?: any, events?: any): IObservable

[Method] Relays selected events from the specified Observable as if the events were fired by this

Parameters

  • object?: any optional

    Object The Observable whose events this object is to relay.

  • events?: any optional

    String/Array/Object Array of event names to relay.

Returns

IObservable

Ext.mixin.Observable this

optional public remove(o?: any): any

[Method] Remove an item from the collection

Parameters

  • o?: any optional

    Object The item to remove.

Returns

any

Object The item removed or false if no item was removed.

optional public removeAfterListener(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Removes a before event handler

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove.

  • scope?: any optional

    Object The scope originally specified for fn.

  • options?: any optional

    Object Extra options object.

optional public removeAll(items?: Array<any>): IMixedCollection

[Method] Remove all items in the passed array from the collection

Parameters

  • items?: Array<any> optional

    Array An array of items to be removed.

Returns

IMixedCollection

Ext.util.MixedCollection this object

optional public removeAt(index?: number): any

[Method] Remove an item from a specified index in the collection

Parameters

  • index?: number optional

    Number The index within the collection of the item to remove.

Returns

any

Object/Boolean The item removed or false if no item was removed.

optional public removeAtKey(key?: string): any

[Method] Removed an item associated with the passed key from the collection

Parameters

  • key?: string optional

    String The key of the item to remove.

Returns

any

Object/Boolean The item removed or false if no item was removed.

optional public removeBeforeListener(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Removes a before event handler

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove.

  • scope?: any optional

    Object The scope originally specified for fn.

  • options?: any optional

    Object Extra options object.

optional public removeListener(eventName?: any, fn?: any, scope?: any, options?: any, order?: string)

[Method] Removes an event handler

Parameters

  • eventName?: any optional

    String/String[]/Object The type of event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove. This must be a reference to the function passed into the addListener call.

  • scope?: any optional

    Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to addListener or the listener will not be removed.

  • options?: any optional

    Object Extra options object. See addListener for details.

  • order?: string optional

    String The order of the listener to remove. Possible values are before, current and after.

optional public removeManagedListener(object?: any, eventName?: any, fn?: any, scope?: any)

[Method] Adds listeners to any Observable object or Element which are automatically removed when this Component is destroyed

Parameters

  • object?: any optional

    Ext.mixin.Observable/HTMLElement The item to which to add a listener/listeners.

  • eventName?: any optional

    Object/String The event name, or an object containing event name properties.

  • fn?: any optional

    Function If the eventName parameter was an event name, this is the handler function.

  • scope?: any optional

    Object If the eventName parameter was an event name, this is the scope in which the handler function is executed.

optional public reorder(mapping?: any)

[Method] Reorders each of the items based on a mapping from old index to new index

Parameters

  • mapping?: any optional

    Object Mapping from old item index to new item index.

optional public replace(key?: string, o?: any): any

[Method] Replaces an item in the collection

Parameters

  • key?: string optional

    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.

  • o?: any optional

    Object If the first parameter passed was a key, the item to associate with that key.

Returns

any

Object The new item.

optional public resumeEvents(discardQueuedEvents?: boolean)

[Method] Resumes firing events see suspendEvents

Parameters

  • discardQueuedEvents?: boolean optional

    Boolean Pass as true to discard any queued events.

optional public setBubbleEvents(bubbleEvents?: any)

[Method] Sets the value of bubbleEvents

Parameters

  • bubbleEvents?: any optional

    String/String[]

optional public setListeners(listeners?: any)

[Method] Sets the value of listeners

Parameters

  • listeners?: any optional

    Object

optional public sort(sorters?: any, direction?: string, where?: string, doSort?: boolean): ISorter[]

[Method] Sorts the data in the Store by one or more of its properties

Parameters

  • sorters?: any optional

    String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations.

  • direction?: string optional

    String The overall direction to sort the data by.

  • where?: string optional

    String

  • doSort?: boolean optional

    Boolean

Returns

ISorter[]

Ext.util.Sorter[]

optional public sortBy(sorterFn?: any)

[Method] Sorts the collection by a single sorter function

Parameters

  • sorterFn?: any optional

    Function The function to sort by.

optional public sortByKey(dir?: string, fn?: any)

[Method] Sorts this collection by keys

Parameters

  • dir?: string optional

    String Sorting direction: 'ASC' or 'DESC'.

  • fn?: any optional

    Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string.

optional public sum(property?: string, root?: string, start?: number, end?: number): number

[Method] Collects all of the values of the given property and returns their sum

Parameters

  • property?: string optional

    String The property to sum by.

  • root?: string optional

    String Optional 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the data object

  • start?: number optional

    Number The record index to start at.

  • end?: number optional

    Number The record index to end at.

Returns

number

Number The total

optional public suspendEvents()

[Method] Suspends the firing of all events

optional public un(eventName?: any, fn?: any, scope?: any, options?: any, order?: string)

[Method] Alias for removeListener

Parameters

  • eventName?: any optional

    String/String[]/Object The type of event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove. This must be a reference to the function passed into the addListener call.

  • scope?: any optional

    Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to addListener or the listener will not be removed.

  • options?: any optional

    Object Extra options object. See addListener for details.

  • order?: string optional

    String The order of the listener to remove. Possible values are before, current and after.

optional public unAfter(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Alias for removeAfterListener

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove.

  • scope?: any optional

    Object The scope originally specified for fn.

  • options?: any optional

    Object Extra options object.

optional public unBefore(eventName?: any, fn?: any, scope?: any, options?: any)

[Method] Alias for removeBeforeListener

Parameters

  • eventName?: any optional

    String/String[]/Object The name of the event the handler was associated with.

  • fn?: any optional

    Function/String The handler to remove.

  • scope?: any optional

    Object The scope originally specified for fn.

  • options?: any optional

    Object Extra options object.