Sencha Documentation

Super classes

Properties

 
all : Ext.util.MixedCollection
Contains all of the items currently managed
Contains all of the items currently managed
 
associationStack : Array Private stack of associations that must be created once their associated model has been defined
 
The string type of the default Model Proxy. Defaults to 'ajax'
The string type of the default Model Proxy. Defaults to 'ajax'

Methods

 
create( Object data, String name, Number id ) : Void
Creates a new instance of a Model using the given data.
Creates a new instance of a Model using the given data.

Parameters

  • data : Object
    Data to initialize the Model's fields with
  • name : String
    The name of the model to create
  • id : Number
    Optional unique id of the Model instance (see Ext.data.Model)

Returns

  • Void
 
each( Object fn, Object scope ) : Void
Executes the specified function once for each item in the collection. Returning false from the function will cease it...
Executes the specified function once for each item in the collection. Returning false from the function will cease iteration. The paramaters passed to the function are:
  • key : String

    The key of the item

  • value : Number

    The value of the item

  • length : Number

    The total number of items in the collection

Parameters

  • fn : Object
    The function to execute.
  • scope : Object
    The scope to execute in. Defaults to this.

Returns

  • Void
 
get( String id ) : Ext.Component
Returns a component by id. For additional details see Ext.util.MixedCollection.get.
Returns a component by id. For additional details see Ext.util.MixedCollection.get.

Parameters

  • id : String
    The component id

Returns

  • Ext.Component   The Component, undefined if not found, or null if a Class was found.
 
getCount : Number
Gets the number of items in the collection.
Gets the number of items in the collection.
 
getModel( String/Object id ) : Void
Returns the Ext.data.Model for a given model name
Returns the Ext.data.Model for a given model name

Parameters

  • id : String/Object
    The id of the model or the model instance.

Returns

  • Void
 
isRegistered( Ext.Component xtype ) : Boolean
Checks if a Component type is registered.
Checks if a Component type is registered.

Parameters

  • xtype : Ext.Component
    The mnemonic string by which the Component class may be looked up

Returns

  • Boolean   Whether the type is registered.
 
onAvailable( String id, Function fn, Object scope ) : Void
Registers a function that will be called when a Component with the specified id is added to the manager. This will ha...
Registers a function that will be called when a Component with the specified id is added to the manager. This will happen on instantiation.

Parameters

  • id : String
    The component id
  • fn : Function
    The callback function
  • scope : Object
    The scope (this reference) in which the callback is executed. Defaults to the Component.

Returns

  • Void
 
register( Mixed item ) : Void
Registers an item to be managed
Registers an item to be managed

Parameters

  • item : Mixed
    The item to register

Returns

  • Void
 
Registers a model definition. All model plugins marked with isDefault: true are bootstrapped immediately, as are any ...
Registers a model definition. All model plugins marked with isDefault: true are bootstrapped immediately, as are any addition plugins defined in the model config.
 
unregister( Mixed item ) : Void
Unregisters a component by removing it from this manager
Unregisters a component by removing it from this manager

Parameters

  • item : Mixed
    The item to unregister

Returns

  • Void