Ext.data.JsonP.Ext_data_Model({"alternateClassNames":["Ext.data.Record"],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.data.TreeModel","Ext.grid.property.Property"],"extends":"Ext.Base","uses":[],"html":"

Alternate names

Ext.data.Record

Hierarchy

Ext.Base
Ext.data.Model

Mixins

Requires

Subclasses

Files

A Model represents some object that your application manages. For example, one might define a Model for Users,\nProducts, Cars, or any other real-world object that we want to model in the system. Models are registered via the\nmodel manager, and are used by stores, which are in turn used by many\nof the data-bound components in Ext.

\n\n

Models are defined as a set of fields and any arbitrary methods and properties relevant to the model. For example:

\n\n
Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',  type: 'string'},\n        {name: 'age',   type: 'int', convert: null},\n        {name: 'phone', type: 'string'},\n        {name: 'alive', type: 'boolean', defaultValue: true, convert: null}\n    ],\n\n    changeName: function() {\n        var oldName = this.get('name'),\n            newName = oldName + \" The Barbarian\";\n\n        this.set('name', newName);\n    }\n});\n
\n\n

The fields array is turned into a MixedCollection automatically by the ModelManager, and all other functions and properties are copied to the new Model's prototype.

\n\n

A Model definition always has an identifying field which should yield a unique key for each instance. By default, a field\nnamed \"id\" will be created with a mapping of \"id\". This happens because of the default\nidProperty provided in Model definitions.

\n\n

To alter which field is the identifying field, use the idProperty config.

\n\n

If the Model should not have any identifying field (for example if you are defining ab abstract base class for your\napplication models), configure the {@liknk idProperty} as null.

\n\n

By default, the built in numeric and boolean field types have a Ext.data.Field.convert function which coerces string\nvalues in raw data into the field's type. For better performance with Json or Array\nreaders if you are in control of the data fed into this Model, you can null out the default convert function which will cause\nthe raw property to be copied directly into the Field's value.

\n\n

Now we can create instances of our User model and call any model logic we defined:

\n\n
var user = Ext.create('User', {\n    id   : 'ABCD12345',\n    name : 'Conan',\n    age  : 24,\n    phone: '555-555-5555'\n});\n\nuser.changeName();\nuser.get('name'); //returns \"Conan The Barbarian\"\n
\n\n

Validations

\n\n

Models have built-in support for validations, which are executed against the validator functions in Ext.data.validations (see all validation functions). Validations are easy to add to\nmodels:

\n\n
Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',     type: 'string'},\n        {name: 'age',      type: 'int'},\n        {name: 'phone',    type: 'string'},\n        {name: 'gender',   type: 'string'},\n        {name: 'username', type: 'string'},\n        {name: 'alive',    type: 'boolean', defaultValue: true}\n    ],\n\n    validations: [\n        {type: 'presence',  field: 'age'},\n        {type: 'length',    field: 'name',     min: 2},\n        {type: 'inclusion', field: 'gender',   list: ['Male', 'Female']},\n        {type: 'exclusion', field: 'username', list: ['Admin', 'Operator']},\n        {type: 'format',    field: 'username', matcher: /([a-z]+)[0-9]{2,3}/}\n    ]\n});\n
\n\n

The validations can be run by simply calling the validate function, which returns a Ext.data.Errors\nobject:

\n\n
var instance = Ext.create('User', {\n    name: 'Ed',\n    gender: 'Male',\n    username: 'edspencer'\n});\n\nvar errors = instance.validate();\n
\n\n

Associations

\n\n

Models can have associations with other Models via Ext.data.association.HasOne,\nbelongsTo and hasMany associations.\nFor example, let's say we're writing a blog administration application which deals with Users, Posts and Comments.\nWe can express the relationships between these models like this:

\n\n
Ext.define('Post', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id'],\n\n    belongsTo: 'User',\n    hasMany  : {model: 'Comment', name: 'comments'}\n});\n\nExt.define('Comment', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id', 'post_id'],\n\n    belongsTo: 'Post'\n});\n\nExt.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    hasMany: [\n        'Post',\n        {model: 'Comment', name: 'comments'}\n    ]\n});\n
\n\n

See the docs for Ext.data.association.HasOne, Ext.data.association.BelongsTo and\nExt.data.association.HasMany for details on the usage and configuration of associations.\nNote that associations can also be specified like this:

\n\n
Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    associations: [\n        {type: 'hasMany', model: 'Post',    name: 'posts'},\n        {type: 'hasMany', model: 'Comment', name: 'comments'}\n    ]\n});\n
\n\n

Using a Proxy

\n\n

Models are great for representing types of data and relationships, but sooner or later we're going to want to load or\nsave that data somewhere. All loading and saving of data is handled via a Proxy, which\ncan be set directly on the Model:

\n\n
Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'name', 'email'],\n\n    proxy: {\n        type: 'rest',\n        url : '/users'\n    }\n});\n
\n\n

Here we've set up a Rest Proxy, which knows how to load and save data to and from a\nRESTful backend. Let's see how this works:

\n\n
var user = Ext.create('User', {name: 'Ed Spencer', email: 'ed@sencha.com'});\n\nuser.save(); //POST /users\n
\n\n

Calling save on the new Model instance tells the configured RestProxy that we wish to persist this Model's\ndata onto our server. RestProxy figures out that this Model hasn't been saved before because it doesn't have an id,\nand performs the appropriate action - in this case issuing a POST request to the url we configured (/users). We\nconfigure any Proxy on any Model and always follow this API - see Ext.data.proxy.Proxy for a full list.

\n\n

Loading data via the Proxy is equally easy:

\n\n
//get a reference to the User model class\nvar User = Ext.ModelManager.getModel('User');\n\n//Uses the configured RestProxy to make a GET request to /users/123\nUser.load(123, {\n    success: function(user) {\n        console.log(user.getId()); //logs 123\n    }\n});\n
\n\n

Models can also be updated and destroyed easily:

\n\n
//the user Model we loaded in the last snippet:\nuser.set('name', 'Edward Spencer');\n\n//tells the Proxy to save the Model. In this case it will perform a PUT request to /users/123 as this Model already has an id\nuser.save({\n    success: function() {\n        console.log('The User was updated');\n    }\n});\n\n//tells the Proxy to destroy the Model. Performs a DELETE request to /users/123\nuser.destroy({\n    success: function() {\n        console.log('The User was destroyed!');\n    }\n});\n
\n\n

Usage in Stores

\n\n

It is very common to want to load a set of Model instances to be displayed and manipulated in the UI. We do this by\ncreating a Store:

\n\n
var store = Ext.create('Ext.data.Store', {\n    model: 'User'\n});\n\n//uses the Proxy we set up on Model to load the Store data\nstore.load();\n
\n\n

A Store is just a collection of Model instances - usually loaded from a server somewhere. Store can also maintain a\nset of added, updated and removed Model instances to be synchronized with the server via the Proxy. See the Store docs for more information on Stores.

\n
Defined By

Config options

An array of associations for this model.

\n

An array of associations for this model.

\n

One or more BelongsTo associations for this model.

\n

One or more BelongsTo associations for this model.

\n
The name of a property that is used for submitting this Model's unique client-side identifier\nto the server when mult...

The name of a property that is used for submitting this Model's unique client-side identifier\nto the server when multiple phantom records are saved as part of the same Operation.\nIn such a case, the server response should include the client id for each record\nso that the server response data can be used to update the client-side records if necessary.\nThis property cannot have the same name as any of this Model's fields.

\n
The string type of the default Model Proxy. ...

The string type of the default Model Proxy. Defaults to 'ajax'.

\n

Defaults to: 'ajax'

Ext.data.Model
view source
: Object[]/String[]
The fields for this model. ...

The fields for this model. This is an Array of Field definition objects. A Field\ndefinition may simply be the name of the Field, but a Field encapsulates data type,\ncustom conversion of raw data, and a mapping\nproperty to specify by name of index, how to extract a field's value from a raw data object, so it is best practice\nto specify a full set of Field config objects.

\n

One or more HasMany associations for this model.

\n

One or more HasMany associations for this model.

\n
The name of the field treated as this Model's unique id. ...

The name of the field treated as this Model's unique id. Defaults to 'id'.

\n\n

This may also be specified as a Field config object. This means that the identifying field can be calculated\nusing a convert function which might aggregate several values from the\nraw data object to use as an identifier.

\n\n

The resulting Field is added to the Model's field collection unless there is already\na configured field with a mapping that reads the same property.

\n\n

If defining an abstract base Model class, the idProperty may be configured as null which will mean that\nno identifying field will be generated.

\n

Defaults to: 'id'

The id generator to use for this model. ...

The id generator to use for this model. The default id generator does not generate\nvalues for the idProperty.

\n\n

This can be overridden at the model level to provide a custom generator for a model.\nThe simplest form of this would be:

\n\n
 Ext.define('MyApp.data.MyModel', {\n     extend: 'Ext.data.Model',\n     requires: ['Ext.data.SequentialIdGenerator'],\n     idgen: 'sequential',\n     ...\n });\n
\n\n

The above would generate sequential id's such\nas 1, 2, 3 etc..

\n\n

Another useful id generator is Ext.data.UuidGenerator:

\n\n
 Ext.define('MyApp.data.MyModel', {\n     extend: 'Ext.data.Model',\n     requires: ['Ext.data.UuidGenerator'],\n     idgen: 'uuid',\n     ...\n });\n
\n\n

An id generation can also be further configured:

\n\n
 Ext.define('MyApp.data.MyModel', {\n     extend: 'Ext.data.Model',\n     idgen: {\n         type: 'sequential',\n         seed: 1000,\n         prefix: 'ID_'\n     }\n });\n
\n\n

The above would generate id's such as ID_1000, ID_1001, ID_1002 etc..

\n\n

If multiple models share an id space, a single generator can be shared:

\n\n
 Ext.define('MyApp.data.MyModelX', {\n     extend: 'Ext.data.Model',\n     idgen: {\n         type: 'sequential',\n         id: 'xy'\n     }\n });\n\n Ext.define('MyApp.data.MyModelY', {\n     extend: 'Ext.data.Model',\n     idgen: {\n         type: 'sequential',\n         id: 'xy'\n     }\n });\n
\n\n

For more complex, shared id generators, a custom generator is the best approach.\nSee Ext.data.IdGenerator for details on creating custom id generators.

\n
A config object containing one or more event handlers to be added to this object during initialization. ...

A config object containing one or more event handlers to be added to this object during initialization. This\nshould be a valid listeners config object as specified in the addListener example for attaching multiple\nhandlers at once.

\n\n

DOM events from Ext JS Components

\n\n

While some Ext JS Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this is usually\nonly done when extra value can be added. For example the DataView's itemclick event passing the node clicked on. To access DOM events directly from a\nchild element of a Component, we need to specify the element option to identify the Component property to add a\nDOM listener to:

\n\n
new Ext.panel.Panel({\n    width: 400,\n    height: 200,\n    dockedItems: [{\n        xtype: 'toolbar'\n    }],\n    listeners: {\n        click: {\n            element: 'el', //bind to the underlying el property on the panel\n            fn: function(){ console.log('click el'); }\n        },\n        dblclick: {\n            element: 'body', //bind to the underlying body property on the panel\n            fn: function(){ console.log('dblclick body'); }\n        }\n    }\n});\n
\n
Ext.data.Model
view source
: Stringdeprecated
The name of the property on this Persistable object that its data is saved to. ...

The name of the property on this Persistable object that its data is saved to. Defaults to 'data'\n(i.e: all persistable data resides in this.data.)

\n

Defaults to: 'data'

\n

This cfg has been deprecated

\n

This config is deprecated. In future this will no longer be configurable and will be data.

\n\n
\n

The proxy to use for this model.

\n

The proxy to use for this model.

\n
Ext.data.Model
view source
validations : Object[]

An array of validations for this model.

\n

An array of validations for this model.

\n

Properties

Defined By

Instance Properties

...
\n

Defaults to: 'Ext.Base'

Ext.data.Model
view source
: Objectprivate
This object is used whenever the set() method is called and given a string as the\nfirst argument. ...

This object is used whenever the set() method is called and given a string as the\nfirst argument. This approach saves memory (and GC costs) since we could be called\na lot.

\n

Defaults to: {}

...
\n

Defaults to: {}

Ext.data.Model
view source
: Booleanreadonly
True if this Record has been modified. ...

True if this Record has been modified.

\n

Defaults to: false

Ext.data.Model
view source
: Booleanreadonly
Internal flag used to track whether or not the model instance is currently being edited. ...

Internal flag used to track whether or not the model instance is currently being edited.

\n

Defaults to: false

Ext.data.Model
view source
: Arrayprivate
Used as a dummy source array when constructor is called with no args ...

Used as a dummy source array when constructor is called with no args

\n

Defaults to: []

Ext.data.Model
view source
: Booleanprivate
...
\n

Defaults to: false

Initial suspended call count. ...

Initial suspended call count. Incremented when suspendEvents is called, decremented when resumeEvents is called.

\n

Defaults to: 0

A Collection of the fields defined for this Model (including fields defined in superclasses)\n\nThis is a collection of...

A Collection of the fields defined for this Model (including fields defined in superclasses)

\n\n

This is a collection of Ext.data.Field instances, each of which encapsulates information that the field was configured with.\nBy default, you can specify a field as simply a String, representing the name of the field, but a Field encapsulates\ndata type, custom conversion of raw data, and a mapping\nproperty to specify by name of index, how to extract a field's value from a raw data object.

\n
This object holds a key for any event that has a listener. ...

This object holds a key for any event that has a listener. The listener may be set\ndirectly on the instance, or on its class or a super class (via observe) or\non the MVC EventBus. The values of this object are truthy\n(a non-zero number) and falsy (0 or undefined). They do not represent an exact count\nof listeners. The value for an event is truthy if the event must be fired and is\nfalsy if there is no need to fire the event.

\n\n

The intended use of this property is to avoid the expense of fireEvent calls when\nthere are no listeners. This can be particularly helpful when one would otherwise\nhave to call fireEvent hundreds or thousands of times. It is used like this:

\n\n
 if (this.hasListeners.foo) {\n     this.fireEvent('foo', this, arg1);\n }\n
\n
...
\n

Defaults to: []

...
\n

Defaults to: {}

Ext.data.Model
view source
internalId : Number/Stringprivate

An internal unique ID for each Model instance, used to identify Models that don't have an ID yet

\n

An internal unique ID for each Model instance, used to identify Models that don't have an ID yet

\n
...
\n

Defaults to: true

Ext.data.Model
view source
: Boolean
true in this class to identify an object as an instantiated Model, or subclass thereof. ...

true in this class to identify an object as an instantiated Model, or subclass thereof.

\n

Defaults to: true

true in this class to identify an object as an instantiated Observable, or subclass thereof. ...

true in this class to identify an object as an instantiated Observable, or subclass thereof.

\n

Defaults to: true

Ext.data.Model
view source
modified : Object

Key: value pairs of all fields whose values have changed

\n

Key: value pairs of all fields whose values have changed

\n
Ext.data.Model
view source
: Boolean
True when the record does not yet exist in a server-side database (see setDirty). ...

True when the record does not yet exist in a server-side database (see setDirty).\nAny record which has a real database pk set as its id property is NOT a phantom -- it's real.

\n

Defaults to: false

Ext.data.Model
view source
raw : Object

The raw data used to create this model if created via a reader.

\n

The raw data used to create this model if created via a reader.

\n
Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); // dependent on 'this'\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n
The Store to which this instance belongs. ...

The Store to which this instance belongs. NOTE: If this\ninstance is bound to multiple stores, this property will reference only the\nfirst. To examine all the stores, use the stores property instead.

\n

The Stores to which this instance is bound.

\n

The Stores to which this instance is bound.

\n
Defined By

Static Properties

...
\n

Defaults to: []

Ext.data.Model
view source
: Numberprivatestatic
...
\n

Defaults to: 1

Ext.data.Model
view source
: Stringstatic
The update operation of type 'commit'. ...

The update operation of type 'commit'. Used by Store.update event.

\n

Defaults to: 'commit'

Ext.data.Model
view source
: Stringstatic
The update operation of type 'edit'. ...

The update operation of type 'edit'. Used by Store.update event.

\n

Defaults to: 'edit'

Ext.data.Model
view source
: Stringprivatestatic
...
\n

Defaults to: 'ext-record'

Ext.data.Model
view source
: Stringstatic
The update operation of type 'reject'. ...

The update operation of type 'reject'. Used by Store.update event.

\n

Defaults to: 'reject'

Methods

Defined By

Instance Methods

Ext.data.Model
view source
new( data ) : Ext.data.Model
Creates new Model instance. ...

Creates new Model instance.

\n

Parameters

  • data : Object

    An object containing keys corresponding to this model's fields, and their associated values

    \n

Returns

Adds the specified events to the list of events which this Observable may fire. ...

Adds the specified events to the list of events which this Observable may fire.

\n

Parameters

  • eventNames : Object/String...

    Either an object with event names as properties with\na value of true. For example:

    \n\n
    this.addEvents({\n    storeloaded: true,\n    storecleared: true\n});\n
    \n\n

    Or any number of event names as separate parameters. For example:

    \n\n
    this.addEvents('storeloaded', 'storecleared');\n
    \n
( eventName, [fn], [scope], [options] ) : Object
Appends an event handler to this object. ...

Appends an event handler to this object. For example:

\n\n
myGridPanel.on(\"mouseover\", this.onMouseOver, this);\n
\n\n

The method also allows for a single argument to be passed which is a config object\ncontaining properties which specify multiple events. For example:

\n\n
myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n
\n\n

One can also specify options for each event handler separately:

\n\n
myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n
\n\n

Names of methods in a specified scope may also be used. Note that\nscope MUST be specified to use this option:

\n\n
myGridPanel.on({\n    cellClick: {fn: 'onCellClick', scope: this, single: true},\n    mouseover: {fn: 'onMouseOver', scope: panel}\n});\n
\n

Parameters

  • eventName : String/Object

    The name of the event to listen for.\nMay also be an object who's property names are event names.

    \n\n
  • fn : Function (optional)

    The method the event invokes, or if scope is specified, the name* of the method within\nthe specified scope. Will be called with arguments\ngiven to fireEvent plus the options parameter described below.

    \n\n
  • scope : Object (optional)

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

    \n\n
  • options : Object (optional)

    An object containing handler configuration.

    \n\n\n\n\n

    Note: Unlike in ExtJS 3.x, the options object will also be passed as the last\nargument to every event handler.

    \n\n\n\n\n

    This object may contain any of the following properties:

    \n\n
    • scope : Object

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

      \n\n
    • delay : Number

      The number of milliseconds to delay the invocation of the handler after the event fires.

      \n\n
    • single : Boolean

      True to add a handler to handle just the next firing of the event, and then remove itself.

      \n\n
    • buffer : Number

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\n by the specified number of milliseconds. If the event fires again within that time,\n the original handler is not invoked, but the new handler is scheduled in its place.

      \n\n
    • target : Ext.util.Observable

      Only call the handler if the event was fired on the target Observable, not if the event\n was bubbled up from a child Observable.

      \n\n
    • element : String

      This option is only valid for listeners bound to Components.\n The name of a Component property which references an element to add a listener to.

      \n\n\n\n\n

      This option is useful during Component construction to add DOM event listeners to elements of\n Components which will exist only after the Component is rendered.\n For example, to add a click listener to a Panel's body:

      \n\n\n\n\n
        new Ext.panel.Panel({\n      title: 'The title',\n      listeners: {\n          click: this.handlePanelClick,\n          element: 'body'\n      }\n  });\n
      \n\n
    • destroyable : Boolean (optional)

      When specified as true, the function returns A Destroyable object. An object which implements the destroy method which removes all listeners added in this call.

      \n\n

      Defaults to: false

    • priority : Number (optional)

      An optional numeric priority that determines the order in which event handlers\n are run. Event handlers with no priority will be run as if they had a priority\n of 0. Handlers with a higher priority will be prioritized to run sooner than\n those with a lower priority. Negative numbers can be used to set a priority\n lower than the default. Internally, the framework uses a range of 1000 or\n greater, and -1000 or lesser for handers that are intended to run before or\n after all others, so it is recommended to stay within the range of -999 to 999\n when setting the priority of event handlers in application-level code.

      \n\n\n\n\n

      Combining Options

      \n\n\n\n\n

      Using the options argument, it is possible to combine different types of listeners:

      \n\n\n\n\n

      A delayed, one-time listener.

      \n\n\n\n\n
      myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n
      \n\n

Returns

  • Object

    Only when the destroyable option is specified.

    \n\n\n\n\n

    A Destroyable object. An object which implements the destroy method which removes all listeners added in this call. For example:

    \n\n\n\n\n
    this.btnListeners =  = myButton.on({\n    destroyable: true\n    mouseover:   function() { console.log('mouseover'); },\n    mouseout:    function() { console.log('mouseout'); },\n    click:       function() { console.log('click'); }\n});\n
    \n\n\n\n\n

    And when those listeners need to be removed:

    \n\n\n\n\n
    Ext.destroy(this.btnListeners);\n
    \n\n\n\n\n

    or

    \n\n\n\n\n
    this.btnListeners.destroy();\n
    \n\n
( item, ename, [fn], [scope], [options] ) : Object
Adds listeners to any Observable object (or Ext.Element) which are automatically removed when this Component is\ndestr...

Adds listeners to any Observable object (or Ext.Element) which are automatically removed when this Component is\ndestroyed.

\n

Parameters

  • item : Ext.util.Observable/Ext.Element

    The item to which to add a listener/listeners.

    \n\n
  • ename : Object/String

    The event name, or an object containing event name properties.

    \n\n
  • fn : Function (optional)

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

    \n\n
  • scope : Object (optional)

    If the ename parameter was an event name, this is the scope (this reference)\nin which the handler function is executed.

    \n\n
  • options : Object (optional)

    If the ename parameter was an event name, this is the\naddListener options.

    \n\n

Returns

  • Object

    Only when the destroyable option is specified.

    \n\n\n\n\n

    A Destroyable object. An object which implements the destroy method which removes all listeners added in this call. For example:

    \n\n\n\n\n
    this.btnListeners =  = myButton.mon({\n    destroyable: true\n    mouseover:   function() { console.log('mouseover'); },\n    mouseout:    function() { console.log('mouseout'); },\n    click:       function() { console.log('click'); }\n});\n
    \n\n\n\n\n

    And when those listeners need to be removed:

    \n\n\n\n\n
    Ext.destroy(this.btnListeners);\n
    \n\n\n\n\n

    or

    \n\n\n\n\n
    this.btnListeners.destroy();\n
    \n\n
Ext.data.Model
view source
( [modifiedFieldNames] )private
If this Model instance has been joined to a store, the store's\nafterCommit method is called, ...

If this Model instance has been joined to a store, the store's\nafterCommit method is called,

\n

Parameters

  • modifiedFieldNames : String[] (optional)

    Array of field names changed by syncing this field with the server.

    \n
Ext.data.Model
view source
( [modifiedFieldNames] )private
If this Model instance has been joined to a store, the store's\nafterEdit method is called. ...

If this Model instance has been joined to a store, the store's\nafterEdit method is called.

\n

Parameters

  • modifiedFieldNames : String[] (optional)

    Array of field names changed during edit.

    \n
Ext.data.Model
view source
( )private
If this Model instance has been joined to a store, the store's\nafterReject method is called. ...

If this Model instance has been joined to a store, the store's\nafterReject method is called.

\n
Ext.data.Model
view source
( )
Begins an edit. ...

Begins an edit. While in edit mode, no events (e.g.. the update event) are relayed to the containing store.\nWhen an edit has begun, it must be followed by either endEdit or cancelEdit.

\n
( args ) : Objectdeprecatedprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n
\n

This method has been deprecated

\n

as of 4.1. Use callParent instead.

\n\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callOverridden(arguments)

    \n

Returns

  • Object

    Returns the result of calling the overridden method

    \n
Call the \"parent\" method of the current method. ...

Call the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).

\n\n
 Ext.define('My.Base', {\n     constructor: function (x) {\n         this.x = x;\n     },\n\n     statics: {\n         method: function (x) {\n             return x;\n         }\n     }\n });\n\n Ext.define('My.Derived', {\n     extend: 'My.Base',\n\n     constructor: function () {\n         this.callParent([21]);\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // alerts 21\n
\n\n

This can be used with an override as follows:

\n\n
 Ext.define('My.DerivedOverride', {\n     override: 'My.Derived',\n\n     constructor: function (x) {\n         this.callParent([x*2]); // calls original My.Derived constructor\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // now alerts 42\n
\n\n

This also works with static methods.

\n\n
 Ext.define('My.Derived2', {\n     extend: 'My.Base',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Base.method\n         }\n     }\n });\n\n alert(My.Base.method(10);     // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\n

Lastly, it also works with overridden static methods.

\n\n
 Ext.define('My.Derived2Override', {\n     override: 'My.Derived2',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Derived2.method\n         }\n     }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\n\n

To override a method and replace it and also call the superclass method, use\ncallSuper. This is often done to patch a method to fix a bug.

\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result of calling the parent method

    \n
Ext.data.Model
view source
( fn )private
Helper function used by afterEdit, afterReject and afterCommit. ...

Helper function used by afterEdit, afterReject and afterCommit. Calls the given method on the\nstore that this instance has joined, if any. The store function\nwill always be called with the model instance as its single argument. If this model is joined to\na Ext.data.NodeStore, then this method calls the given method on the NodeStore and the associated Ext.data.TreeStore

\n

Parameters

  • fn : String

    The function to call on the store

    \n
This method is used by an override to call the superclass method but bypass any\noverridden method. ...

This method is used by an override to call the superclass method but bypass any\noverridden method. This is often done to \"patch\" a method that contains a bug\nbut for whatever reason cannot be fixed directly.

\n\n

Consider:

\n\n
 Ext.define('Ext.some.Class', {\n     method: function () {\n         console.log('Good');\n     }\n });\n\n Ext.define('Ext.some.DerivedClass', {\n     method: function () {\n         console.log('Bad');\n\n         // ... logic but with a bug ...\n\n         this.callParent();\n     }\n });\n
\n\n

To patch the bug in DerivedClass.method, the typical solution is to create an\noverride:

\n\n
 Ext.define('App.paches.DerivedClass', {\n     override: 'Ext.some.DerivedClass',\n\n     method: function () {\n         console.log('Fixed');\n\n         // ... logic but with bug fixed ...\n\n         this.callSuper();\n     }\n });\n
\n\n

The patch method cannot use callParent to call the superclass method since\nthat would call the overridden method containing the bug. In other words, the\nabove patch would only produce \"Fixed\" then \"Good\" in the console log, whereas,\nusing callParent would produce \"Fixed\" then \"Bad\" then \"Good\".

\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callSuper(arguments)

    \n

Returns

  • Object

    Returns the result of calling the superclass method

    \n
Ext.data.Model
view source
( )
Cancels all changes made in the current edit operation. ...

Cancels all changes made in the current edit operation.

\n
...
\n

Parameters

Ext.data.Model
view source
( oldId, newId )private
...
\n

Parameters

Removes all listeners for this object including the managed listeners ...

Removes all listeners for this object including the managed listeners

\n
Removes all managed listeners for this object. ...

Removes all managed listeners for this object.

\n
Ext.data.Model
view source
( [silent], [modifiedFieldNames] )
Usually called by the Ext.data.Store which owns the model instance. ...

Usually called by the Ext.data.Store which owns the model instance. Commits all changes made to the\ninstance since either creation or the last commit operation.

\n\n

Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit\noperations.

\n

Parameters

  • silent : Boolean (optional)

    Pass true to skip notification of the owning store of the change.

    \n

    Defaults to: false

  • modifiedFieldNames : String[] (optional)

    Array of field names changed during sync with server if known.\nOmit or pass null if unknown. An empty array means that it is known that no fields were modified\nby the server's response.\nDefaults to false.

    \n
Ext.data.Model
view source
( f1, f2 )private
...
\n

Parameters

( eventName, args, bubbles )private
Continue to fire event. ...

Continue to fire event.

\n

Parameters

Ext.data.Model
view source
( [id] ) : Ext.data.Model
Creates a copy (clone) of this Model instance. ...

Creates a copy (clone) of this Model instance.

\n

Parameters

  • id : String (optional)

    A new id, defaults to the id of the instance being copied.\nSee id. To generate a phantom instance with a new id use:

    \n\n
    var rec = record.copy(); // clone the record\nExt.data.Model.id(rec); // automatically generate a unique sequential id\n
    \n

Returns

Ext.data.Model
view source
( sourceRecord ) : String[]private
Copies data from the passed record into this record. ...

Copies data from the passed record into this record. If the passed record is undefined, does nothing.

\n\n

If this is a phantom record (represented only in the client, with no corresponding database entry), and\nthe source record is not a phantom, then this record acquires the id of the source record.

\n

Parameters

Returns

  • String[]

    The names of the fields which changed value.

    \n
Creates an event handling function which refires the event from this object as the passed event name. ...

Creates an event handling function which refires the event from this object as the passed event name.

\n

Parameters

  • newName : String

    The name under which to refire the passed parameters.

    \n
  • beginEnd : Array (optional)

    The caller can specify on which indices to slice.

    \n

Returns

Ext.data.Model
view source
( options ) : Ext.data.Model
Destroys the model using the configured proxy. ...

Destroys the model using the configured proxy.

\n

Parameters

Returns

Overrides: Ext.Base.destroy

Enables events fired by this Observable to bubble up an owner hierarchy by calling this.getBubbleTarget() if\npresent. ...

Enables events fired by this Observable to bubble up an owner hierarchy by calling this.getBubbleTarget() if\npresent. There is no implementation in the Observable base class.

\n\n

This is commonly used by Ext.Components to bubble events to owner Containers.\nSee Ext.Component.getBubbleTarget. The default implementation in Ext.Component returns the\nComponent's immediate owner. But if a known target is required, this can be overridden to access the\nrequired target more quickly.

\n\n

Example:

\n\n
Ext.define('Ext.overrides.form.field.Base', {\n    override: 'Ext.form.field.Base',\n\n    //  Add functionality to Field's initComponent to enable the change event to bubble\n    initComponent: function () {\n        this.callParent();\n        this.enableBubble('change');\n    }\n});\n\nvar myForm = Ext.create('Ext.form.Panel', {\n    title: 'User Details',\n    items: [{\n        ...\n    }],\n    listeners: {\n        change: function() {\n            // Title goes red if form has been modified.\n            myForm.header.setStyle('color', 'red');\n        }\n    }\n});\n
\n

Parameters

  • eventNames : String/String[]

    The event name to bubble, or an Array of event names.

    \n
Ext.data.Model
view source
( [silent], [modifiedFieldNames] )
Ends an edit. ...

Ends an edit. If any data was modified, the containing store is notified\n(ie, the store's update event will fire).

\n

Parameters

  • silent : Boolean (optional)

    True to not notify the store of the change

    \n
  • modifiedFieldNames : String[] (optional)

    Array of field names changed during edit.

    \n
Fires the specified event with the passed parameters (minus the event name, plus the options object passed\nto addList...

Fires the specified event with the passed parameters (minus the event name, plus the options object passed\nto addListener).

\n\n

An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) by\ncalling enableBubble.

\n

Parameters

  • eventName : String

    The name of the event to fire.

    \n
  • args : Object...

    Variable number of parameters are passed to handlers.

    \n

Returns

  • Boolean

    returns false if any of the handlers return false otherwise it returns true.

    \n
Fires the specified event with the passed parameter list. ...

Fires the specified event with the passed parameter list.

\n\n

An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) by\ncalling enableBubble.

\n

Parameters

  • eventName : String

    The name of the event to fire.

    \n
  • args : Object[]

    An array of parameters which are passed to handlers.

    \n

Returns

  • Boolean

    returns false if any of the handlers return false otherwise it returns true.

    \n
Ext.data.Model
view source
( fieldName ) : Object
Returns the value of the given field ...

Returns the value of the given field

\n

Parameters

  • fieldName : String

    The field to fetch the value for

    \n

Returns

Gets all of the data from this Models loaded associations. ...

Gets all of the data from this Models loaded associations. It does this recursively - for example if we have a\nUser which hasMany Orders, and each Order hasMany OrderItems, it will return an object like this:

\n\n
{\n    orders: [\n        {\n            id: 123,\n            status: 'shipped',\n            orderItems: [\n                ...\n            ]\n        }\n    ]\n}\n
\n

Returns

  • Object

    The nested data set for the Model's loaded associations

    \n
Gets the bubbling parent for an Observable ...

Gets the bubbling parent for an Observable

\n

Returns

Ext.data.Model
view source
( ) : Object
Gets a hash of only the fields that have been modified since this Model was created or commited. ...

Gets a hash of only the fields that have been modified since this Model was created or commited.

\n

Returns

...
\n

Parameters

Ext.data.Model
view source
( includeAssociated ) : Object
Gets all values for each field in this model and returns an object\ncontaining the current data. ...

Gets all values for each field in this model and returns an object\ncontaining the current data.

\n

Parameters

  • includeAssociated : Boolean

    True to also include associated data. Defaults to false.

    \n

Returns

  • Object

    An object hash containing all the values in this model

    \n
Ext.data.Model
view source
( ) : Number/String
Returns the unique ID allocated to this model instance as defined by idProperty. ...

Returns the unique ID allocated to this model instance as defined by idProperty.

\n

Returns

Returns the initial configuration passed to constructor when instantiating\nthis class. ...

Returns the initial configuration passed to constructor when instantiating\nthis class.

\n

Parameters

  • name : String (optional)

    Name of the config option to return.

    \n

Returns

  • Object/Mixed

    The full config object or a single config value\nwhen name parameter specified.

    \n
Ext.data.Model
view source
( [saved] ) : String[]private
Gets the names of all the fields that were modified during an edit ...

Gets the names of all the fields that were modified during an edit

\n

Parameters

  • saved : Object (optional)

    The currently saved data. Defaults to\nthe dataSave property on the object.

    \n

Returns

  • String[]

    An array of modified field names

    \n
Ext.data.Model
view source
( )private
...
\n
Returns the configured Proxy for this Model. ...

Returns the configured Proxy for this Model.

\n

Returns

...
\n

Parameters

Ext.data.Model
view source
( [id] ) : Booleanprivate
Checks if this model has an id assigned ...

Checks if this model has an id assigned

\n

Parameters

  • id : Object (optional)

    The id, if not passed it will call getId()

    \n

Returns

  • Boolean

    True if the model has an id

    \n
Checks to see if this object has any listeners for a specified event, or whether the event bubbles. ...

Checks to see if this object has any listeners for a specified event, or whether the event bubbles. The answer\nindicates whether the event needs firing or not.

\n

Parameters

  • eventName : String

    The name of the event to check for

    \n

Returns

  • Boolean

    true if the event is being listened for or bubbles, else false

    \n
( config ) : Ext.Basechainableprotected
Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

Ext.data.Model
view source
( a, b ) : Booleanprivate
Checks if two values are equal, taking into account certain\nspecial factors, for example dates. ...

Checks if two values are equal, taking into account certain\nspecial factors, for example dates.

\n

Parameters

Returns

  • Boolean

    True if the values are equal

    \n
Ext.data.Model
view source
( fieldName ) : Boolean
Returns true if the passed field name has been modified since the load or last commit. ...

Returns true if the passed field name has been modified since the load or last commit.

\n

Parameters

Returns

Ext.data.Model
view source
( ) : Boolean
Checks if the model is valid. ...

Checks if the model is valid. See validate.

\n

Returns

  • Boolean

    True if the model is valid.

    \n
Ext.data.Model
view source
( item )private
...
\n

Parameters

Ext.data.Model
view source
( store )
Tells this model instance that it has been added to a store. ...

Tells this model instance that it has been added to a store.

\n

Parameters

Ext.data.Model
view source
( )private
...

\n
( item, ename, [fn], [scope], [options] ) : Object
Shorthand for addManagedListener. ...

Shorthand for addManagedListener.

\n\n

Adds listeners to any Observable object (or Ext.Element) which are automatically removed when this Component is\ndestroyed.

\n

Parameters

  • item : Ext.util.Observable/Ext.Element

    The item to which to add a listener/listeners.

    \n\n
  • ename : Object/String

    The event name, or an object containing event name properties.

    \n\n
  • fn : Function (optional)

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

    \n\n
  • scope : Object (optional)

    If the ename parameter was an event name, this is the scope (this reference)\nin which the handler function is executed.

    \n\n
  • options : Object (optional)

    If the ename parameter was an event name, this is the\naddListener options.

    \n\n

Returns

  • Object

    Only when the destroyable option is specified.

    \n\n\n\n\n

    A Destroyable object. An object which implements the destroy method which removes all listeners added in this call. For example:

    \n\n\n\n\n
    this.btnListeners =  = myButton.mon({\n    destroyable: true\n    mouseover:   function() { console.log('mouseover'); },\n    mouseout:    function() { console.log('mouseout'); },\n    click:       function() { console.log('click'); }\n});\n
    \n\n\n\n\n

    And when those listeners need to be removed:

    \n\n\n\n\n
    Ext.destroy(this.btnListeners);\n
    \n\n\n\n\n

    or

    \n\n\n\n\n
    this.btnListeners.destroy();\n
    \n\n
( item, ename, [fn], [scope] )
Shorthand for removeManagedListener. ...

Shorthand for removeManagedListener.

\n\n

Removes listeners that were added by the mon method.

\n

Parameters

  • item : Ext.util.Observable/Ext.Element

    The item from which to remove a listener/listeners.

    \n\n
  • ename : Object/String

    The event name, or an object containing event name properties.

    \n\n
  • fn : Function (optional)

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

    \n\n
  • scope : Object (optional)

    If the ename parameter was an event name, this is the scope (this reference)\nin which the handler function is executed.

    \n\n
( eventName, [fn], [scope], [options] ) : Object
Shorthand for addListener. ...

Shorthand for addListener.

\n\n

Appends an event handler to this object. For example:

\n\n
myGridPanel.on(\"mouseover\", this.onMouseOver, this);\n
\n\n

The method also allows for a single argument to be passed which is a config object\ncontaining properties which specify multiple events. For example:

\n\n
myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n
\n\n

One can also specify options for each event handler separately:

\n\n
myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n
\n\n

Names of methods in a specified scope may also be used. Note that\nscope MUST be specified to use this option:

\n\n
myGridPanel.on({\n    cellClick: {fn: 'onCellClick', scope: this, single: true},\n    mouseover: {fn: 'onMouseOver', scope: panel}\n});\n
\n

Parameters

  • eventName : String/Object

    The name of the event to listen for.\nMay also be an object who's property names are event names.

    \n\n
  • fn : Function (optional)

    The method the event invokes, or if scope is specified, the name* of the method within\nthe specified scope. Will be called with arguments\ngiven to fireEvent plus the options parameter described below.

    \n\n
  • scope : Object (optional)

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

    \n\n
  • options : Object (optional)

    An object containing handler configuration.

    \n\n\n\n\n

    Note: Unlike in ExtJS 3.x, the options object will also be passed as the last\nargument to every event handler.

    \n\n\n\n\n

    This object may contain any of the following properties:

    \n\n
    • scope : Object

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

      \n\n
    • delay : Number

      The number of milliseconds to delay the invocation of the handler after the event fires.

      \n\n
    • single : Boolean

      True to add a handler to handle just the next firing of the event, and then remove itself.

      \n\n
    • buffer : Number

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\n by the specified number of milliseconds. If the event fires again within that time,\n the original handler is not invoked, but the new handler is scheduled in its place.

      \n\n
    • target : Ext.util.Observable

      Only call the handler if the event was fired on the target Observable, not if the event\n was bubbled up from a child Observable.

      \n\n
    • element : String

      This option is only valid for listeners bound to Components.\n The name of a Component property which references an element to add a listener to.

      \n\n\n\n\n

      This option is useful during Component construction to add DOM event listeners to elements of\n Components which will exist only after the Component is rendered.\n For example, to add a click listener to a Panel's body:

      \n\n\n\n\n
        new Ext.panel.Panel({\n      title: 'The title',\n      listeners: {\n          click: this.handlePanelClick,\n          element: 'body'\n      }\n  });\n
      \n\n
    • destroyable : Boolean (optional)

      When specified as true, the function returns A Destroyable object. An object which implements the destroy method which removes all listeners added in this call.

      \n\n

      Defaults to: false

    • priority : Number (optional)

      An optional numeric priority that determines the order in which event handlers\n are run. Event handlers with no priority will be run as if they had a priority\n of 0. Handlers with a higher priority will be prioritized to run sooner than\n those with a lower priority. Negative numbers can be used to set a priority\n lower than the default. Internally, the framework uses a range of 1000 or\n greater, and -1000 or lesser for handers that are intended to run before or\n after all others, so it is recommended to stay within the range of -999 to 999\n when setting the priority of event handlers in application-level code.

      \n\n\n\n\n

      Combining Options

      \n\n\n\n\n

      Using the options argument, it is possible to combine different types of listeners:

      \n\n\n\n\n

      A delayed, one-time listener.

      \n\n\n\n\n
      myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n
      \n\n

Returns

  • Object

    Only when the destroyable option is specified.

    \n\n\n\n\n

    A Destroyable object. An object which implements the destroy method which removes all listeners added in this call. For example:

    \n\n\n\n\n
    this.btnListeners =  = myButton.on({\n    destroyable: true\n    mouseover:   function() { console.log('mouseover'); },\n    mouseout:    function() { console.log('mouseout'); },\n    click:       function() { console.log('click'); }\n});\n
    \n\n\n\n\n

    And when those listeners need to be removed:

    \n\n\n\n\n
    Ext.destroy(this.btnListeners);\n
    \n\n\n\n\n

    or

    \n\n\n\n\n
    this.btnListeners.destroy();\n
    \n\n
Ext.data.Model
view source
( cls, data, hooks )private
...
\n

Parameters

( names, callback, scope )private
...
\n

Parameters

Ext.data.Model
view source
( seenKeys, depth ) : Objectprivate
This complex-looking method takes a given Model instance and returns an object containing all data from\nall of that M...

This complex-looking method takes a given Model instance and returns an object containing all data from\nall of that Model's loaded associations. See getAssociatedData

\n

Parameters

  • seenKeys : Object

    A hash of all the associations we've already seen

    \n
  • depth : Number

    The current depth

    \n

Returns

  • Object

    The nested data set for the Model's loaded associations

    \n
Prepares a given class for observable instances. ...

Prepares a given class for observable instances. This method is called when a\nclass derives from this class or uses this class as a mixin.

\n

Parameters

  • T : Function

    The class constructor to prepare.

    \n
Ext.data.Model
view source
( [silent] )
Usually called by the Ext.data.Store to which this model instance has been joined. ...

Usually called by the Ext.data.Store to which this model instance has been joined. Rejects\nall changes made to the model instance since either creation, or the last commit operation. Modified fields are\nreverted to their original values.

\n\n

Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject\noperations.

\n

Parameters

  • silent : Boolean (optional)

    True to skip notification of the owning store of the change.\nDefaults to false.

    \n
Relays selected events from the specified Observable as if the events were fired by this. ...

Relays selected events from the specified Observable as if the events were fired by this.

\n\n

For example if you are extending Grid, you might decide to forward some events from store.\nSo you can do this inside your initComponent:

\n\n
this.relayEvents(this.getStore(), ['load']);\n
\n\n

The grid instance will then have an observable 'load' event which will be passed the\nparameters of the store's load event and any function fired with the grid's load event\nwould have access to the grid using the this keyword.

\n

Parameters

  • origin : Object

    The Observable whose events this object is to relay.

    \n
  • events : String[]

    Array of event names to relay.

    \n
  • prefix : String (optional)

    A common prefix to prepend to the event names. For example:

    \n\n
    this.relayEvents(this.getStore(), ['load', 'clear'], 'store');\n
    \n\n

    Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'.

    \n

Returns

  • Object

    A Destroyable object. An object which implements the destroy method which, when destroyed, removes all relayers. For example:

    \n\n
    this.storeRelayers = this.relayEvents(this.getStore(), ['load', 'clear'], 'store');\n
    \n\n

    Can be undone by calling

    \n\n
    Ext.destroy(this.storeRelayers);\n
    \n\n

    or

    \n\n
    this.store.relayers.destroy();\n
    \n
Removes an event handler. ...

Removes an event handler.

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n\n
  • fn : Function

    The handler to remove. This must be a reference to the function passed into the\naddListener call.

    \n\n
  • scope : Object (optional)

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

    \n\n
Removes listeners that were added by the mon method. ...

Removes listeners that were added by the mon method.

\n

Parameters

  • item : Ext.util.Observable/Ext.Element

    The item from which to remove a listener/listeners.

    \n\n
  • ename : Object/String

    The event name, or an object containing event name properties.

    \n\n
  • fn : Function (optional)

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

    \n\n
  • scope : Object (optional)

    If the ename parameter was an event name, this is the scope (this reference)\nin which the handler function is executed.

    \n\n
Remove a single managed listener item ...

Remove a single managed listener item

\n

Parameters

  • isClear : Boolean

    True if this is being called during a clear

    \n
  • managedListener : Object

    The managed listener item\nSee removeManagedListener for other args

    \n
Resumes firing of the named event(s). ...

Resumes firing of the named event(s).

\n\n

After calling this method to resume events, the events will fire when requested to fire.

\n\n

Note that if the suspendEvent method is called multiple times for a certain event,\nthis converse method will have to be called the same number of times for it to resume firing.

\n

Parameters

  • eventName : String...

    Multiple event names to resume.

    \n
Resumes firing events (see suspendEvents). ...

Resumes firing events (see suspendEvents).

\n\n

If events were suspended using the queueSuspended parameter, then all events fired\nduring event suspension will be sent to any listeners now.

\n
Ext.data.Model
view source
( [options] ) : Ext.data.Model
Saves the model instance using the configured proxy. ...

Saves the model instance using the configured proxy.

\n

Parameters

Returns

Ext.data.Model
view source
( fieldName, newValue ) : String[]
Sets the given field to the given value, marks the instance as dirty ...

Sets the given field to the given value, marks the instance as dirty

\n

Parameters

  • fieldName : String/Object

    The field to set, or an object containing key/value pairs

    \n
  • newValue : Object

    The value to set

    \n

Returns

  • String[]

    The array of modified field names or null if nothing was modified.

    \n
( config, applyIfNotSet ) : Ext.Basechainableprivate
...
\n

Parameters

Returns

Ext.data.Model
view source
( )
Marks this Record as dirty. ...

Marks this Record as dirty. This method is used interally when adding phantom records\nto a writer enabled store.

\n\n

Marking a record dirty causes the phantom to be returned by Ext.data.Store.getUpdatedRecords\nwhere it will have a create action composed for it during model save operations.

\n
Ext.data.Model
view source
( id )
Sets the model instance's id field to the given id. ...

Sets the model instance's id field to the given id.

\n

Parameters

Ext.data.Model
view source
( proxy ) : Ext.data.proxy.Proxy
Sets the Proxy to use for this model. ...

Sets the Proxy to use for this model. Accepts any options that can be accepted by\nExt.createByAlias.

\n

Parameters

Returns

Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

Suspends firing of the named event(s). ...

Suspends firing of the named event(s).

\n\n

After calling this method to suspend events, the events will no longer fire when requested to fire.

\n\n

Note that if this is called multiple times for a certain event, the converse method\nresumeEvent will have to be called the same number of times for it to resume firing.

\n

Parameters

  • eventName : String...

    Multiple event names to suspend.

    \n
Suspends the firing of all events. ...

Suspends the firing of all events. (see resumeEvents)

\n

Parameters

  • queueSuspended : Boolean

    Pass as true to queue up suspended events to be fired\nafter the resumeEvents call instead of discarding all suspended events.

    \n
( eventName, fn, [scope] )
Shorthand for removeListener. ...

Shorthand for removeListener.

\n\n

Removes an event handler.

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n\n
  • fn : Function

    The handler to remove. This must be a reference to the function passed into the\naddListener call.

    \n\n
  • scope : Object (optional)

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

    \n\n
Ext.data.Model
view source
( store )
Tells this model instance that it has been removed from the store. ...

Tells this model instance that it has been removed from the store.

\n

Parameters

  • store : Ext.data.Store

    The store from which this model has been removed.

    \n
Validates the current data against all of its configured validations. ...

Validates the current data against all of its configured validations.

\n

Returns

Defined By

Static Methods

( config )privatestatic
...
\n

Parameters

( members )chainableprivatestatic
...
\n

Parameters

( name, member )chainableprivatestatic
...
\n

Parameters

( members )chainablestatic
Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.addMembers({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\n

Parameters

( members ) : Ext.Basechainablestatic
Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n
\n

Parameters

Returns

( xtype )chainableprivatestatic
...
\n

Parameters

( fromClass, members ) : Ext.Basechainableprivatestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : Array/String

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

( alias, origin )static
Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\n

Parameters

( config )privatestatic
...
\n

Parameters

Ext.data.Model
view source
( ) : Ext.data.Field[]static
Returns an Array of Field definitions which define this Model's structure\n\nFields are sorted upon Model class definit...

Returns an Array of Field definitions which define this Model's structure

\n\n

Fields are sorted upon Model class definition. Fields with custom convert functions\nare moved to after fields with no convert functions. This is so that convert functions which rely on existing\nfield values will be able to read those field values.

\n

Returns

Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\n

Returns

Ext.data.Model
view source
( ) : Ext.data.proxy.Proxystatic
Returns the configured Proxy for this Model ...

Returns the configured Proxy for this Model

\n

Returns

Ext.data.Model
view source
( rec ) : Stringstatic
Generates a sequential id. ...

Generates a sequential id. This method is typically called when a record is created and no id has been specified either as a parameter, or through the idProperty\nin the passed data. The generated id will automatically be assigned to the\nrecord. The returned id takes the form: {PREFIX}-{AUTO_ID}.

\n\n\n\n

Parameters

Returns

  • String

    auto-generated string id, \"ext-record-i++\";

    \n
( )deprecatedstatic
Adds members to class. ...

Adds members to class.

\n
\n

This method has been deprecated since 4.1

\n

Use addMembers instead.

\n\n
\n
Ext.data.Model
view source
( id, [config] )static
Asynchronously loads a model instance by id. ...

Asynchronously loads a model instance by id. Sample usage:

\n\n
Ext.define('MyApp.User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'id', type: 'int'},\n        {name: 'name', type: 'string'}\n    ]\n});\n\nMyApp.User.load(10, {\n    scope: this,\n    failure: function(record, operation) {\n        //do something if the load failed\n        //record is null\n    },\n    success: function(record, operation) {\n        //do something if the load succeeded\n    },\n    callback: function(record, operation, success) {\n        //do something whether the load succeeded or failed\n        //if operation is unsuccessful, record is null\n    }\n});\n
\n

Parameters

  • id : Number/String

    The id of the model to load

    \n
  • config : Object (optional)

    config object containing success, failure and callback functions, plus\noptional scope

    \n
( name, mixinClass )privatestatic
Used internally by the mixins pre-processor ...

Used internally by the mixins pre-processor

\n

Parameters

( fn, scope )chainableprivatestatic
...
\n

Parameters

( members ) : Ext.Basechainabledeprecatedstatic
Override members of this class. ...

Override members of this class. Overridden methods can be invoked via\ncallParent.

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n\n

As of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:

\n\n
Ext.define('My.CatOverride', {\n    override: 'My.Cat',\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n
\n\n

The above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).

\n
\n

This method has been deprecated since 4.1.0

\n

Use Ext.define instead

\n\n
\n

Parameters

  • members : Object

    The properties to add to this class. This should be\nspecified as an object literal containing one or more properties.

    \n

Returns

Ext.data.Model
view source
( fields, idProperty, clientIdProperty )static
Apply a new set of field and/or property definitions to the existing model. ...

Apply a new set of field and/or property definitions to the existing model. This will replace any existing\nfields, including fields inherited from superclasses. Mainly for reconfiguring the\nmodel based on changes in meta data (called from Reader's onMetaChange method).

\n

Parameters

Ext.data.Model
view source
( proxy ) : Ext.data.proxy.Proxystatic
Sets the Proxy to use for this model. ...

Sets the Proxy to use for this model. Accepts any options that can be accepted by\nExt.createByAlias.

\n

Parameters

Returns

Defined By

Events

Ext.data.Model
view source
( this, oldId, newId, eOpts )
Fired when this model's id changes ...

Fired when this model's id changes

\n

Parameters

","superclasses":["Ext.Base"],"meta":{"author":["Ed Spencer"]},"code_type":"ext_define","requires":["Ext.ModelManager","Ext.data.Errors","Ext.data.Field","Ext.data.IdGenerator","Ext.data.Operation","Ext.data.validations","Ext.util.MixedCollection"],"html_meta":{"author":null},"statics":{"property":[{"tagname":"property","owner":"Ext.Base","meta":{"static":true,"private":true},"name":"$onExtended","id":"static-property-S-onExtended"},{"tagname":"property","owner":"Ext.data.Model","meta":{"static":true,"private":true},"name":"AUTO_ID","id":"static-property-AUTO_ID"},{"tagname":"property","owner":"Ext.data.Model","meta":{"static":true},"name":"COMMIT","id":"static-property-COMMIT"},{"tagname":"property","owner":"Ext.data.Model","meta":{"static":true},"name":"EDIT","id":"static-property-EDIT"},{"tagname":"property","owner":"Ext.data.Model","meta":{"static":true,"private":true},"name":"PREFIX","id":"static-property-PREFIX"},{"tagname":"property","owner":"Ext.data.Model","meta":{"static":true},"name":"REJECT","id":"static-property-REJECT"}],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"private":true},"name":"addConfig","id":"static-method-addConfig"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"private":true},"name":"addInheritableStatics","id":"static-method-addInheritableStatics"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"private":true},"name":"addMember","id":"static-method-addMember"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true},"name":"addMembers","id":"static-method-addMembers"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true},"name":"addStatics","id":"static-method-addStatics"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"private":true},"name":"addXtype","id":"static-method-addXtype"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"private":true},"name":"borrow","id":"static-method-borrow"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true},"name":"create","id":"static-method-create"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true},"name":"createAlias","id":"static-method-createAlias"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"private":true},"name":"extend","id":"static-method-extend"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"getFields","id":"method-getFields"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true},"name":"getName","id":"static-method-getName"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"getProxy","id":"static-method-getProxy"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"id","id":"static-method-id"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"deprecated":{"text":"Use {@link #addMembers} instead.","version":"4.1"}},"name":"implement","id":"static-method-implement"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"load","id":"static-method-load"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"private":true},"name":"mixin","id":"static-method-mixin"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"private":true},"name":"onExtended","id":"static-method-onExtended"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"chainable":true,"markdown":true,"deprecated":{"text":"Use {@link Ext#define Ext.define} instead","version":"4.1.0"}},"name":"override","id":"static-method-override"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"setFields","id":"static-method-setFields"},{"tagname":"method","owner":"Ext.data.Model","meta":{"static":true},"name":"setProxy","id":"static-method-setProxy"},{"tagname":"method","owner":"Ext.Base","meta":{"static":true,"private":true},"name":"triggerExtended","id":"static-method-triggerExtended"}],"event":[],"css_mixin":[]},"files":[{"href":"Model.html#Ext-data-Model","filename":"Model.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.Base","meta":{"private":true},"name":"$className","id":"property-S-className"},{"tagname":"property","owner":"Ext.data.Model","meta":{"private":true},"name":"_singleProp","id":"property-_singleProp"},{"tagname":"property","owner":"Ext.Base","meta":{"private":true},"name":"configMap","id":"property-configMap"},{"tagname":"property","owner":"Ext.data.Model","meta":{"readonly":true},"name":"dirty","id":"property-dirty"},{"tagname":"property","owner":"Ext.data.Model","meta":{"readonly":true},"name":"editing","id":"property-editing"},{"tagname":"property","owner":"Ext.data.Model","meta":{"private":true},"name":"emptyData","id":"property-emptyData"},{"tagname":"property","owner":"Ext.data.Model","meta":{"private":true},"name":"evented","id":"property-evented"},{"tagname":"property","owner":"Ext.util.Observable","meta":{"private":true},"name":"eventsSuspended","id":"property-eventsSuspended"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"fields","id":"property-fields"},{"tagname":"property","owner":"Ext.util.Observable","meta":{"readonly":true},"name":"hasListeners","id":"property-hasListeners"},{"tagname":"property","owner":"Ext.Base","meta":{"private":true},"name":"initConfigList","id":"property-initConfigList"},{"tagname":"property","owner":"Ext.Base","meta":{"private":true},"name":"initConfigMap","id":"property-initConfigMap"},{"tagname":"property","owner":"Ext.data.Model","meta":{"private":true},"name":"internalId","id":"property-internalId"},{"tagname":"property","owner":"Ext.Base","meta":{"private":true},"name":"isInstance","id":"property-isInstance"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"isModel","id":"property-isModel"},{"tagname":"property","owner":"Ext.util.Observable","meta":{},"name":"isObservable","id":"property-isObservable"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"modified","id":"property-modified"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"phantom","id":"property-phantom"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"raw","id":"property-raw"},{"tagname":"property","owner":"Ext.Base","meta":{"protected":true},"name":"self","id":"property-self"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"store","id":"property-store"},{"tagname":"property","owner":"Ext.data.Model","meta":{},"name":"stores","id":"property-stores"}],"cfg":[{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"associations","id":"cfg-associations"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"belongsTo","id":"cfg-belongsTo"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"clientIdProperty","id":"cfg-clientIdProperty"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"defaultProxyType","id":"cfg-defaultProxyType"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"fields","id":"cfg-fields"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"hasMany","id":"cfg-hasMany"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"idProperty","id":"cfg-idProperty"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{"markdown":true},"name":"idgen","id":"cfg-idgen"},{"tagname":"cfg","owner":"Ext.util.Observable","meta":{},"name":"listeners","id":"cfg-listeners"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{"deprecated":{"text":"This config is deprecated. In future this will no longer be configurable and will be data."}},"name":"persistenceProperty","id":"cfg-persistenceProperty"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"proxy","id":"cfg-proxy"},{"tagname":"cfg","owner":"Ext.data.Model","meta":{},"name":"validations","id":"cfg-validations"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addEvents","id":"method-addEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addListener","id":"method-addListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addManagedListener","id":"method-addManagedListener"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"afterCommit","id":"method-afterCommit"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"afterEdit","id":"method-afterEdit"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"afterReject","id":"method-afterReject"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"beginEdit","id":"method-beginEdit"},{"tagname":"method","owner":"Ext.Base","meta":{"protected":true,"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."}},"name":"callOverridden","id":"method-callOverridden"},{"tagname":"method","owner":"Ext.Base","meta":{"protected":true},"name":"callParent","id":"method-callParent"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"callStore","id":"method-callStore"},{"tagname":"method","owner":"Ext.Base","meta":{"protected":true},"name":"callSuper","id":"method-callSuper"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"cancelEdit","id":"method-cancelEdit"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"captureArgs","id":"method-captureArgs"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"changeId","id":"method-changeId"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"clearListeners","id":"method-clearListeners"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"clearManagedListeners","id":"method-clearManagedListeners"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"commit","id":"method-commit"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"compareConvertFields","id":"method-compareConvertFields"},{"tagname":"method","owner":"Ext.Base","meta":{"private":true},"name":"configClass","id":"method-configClass"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"continueFireEvent","id":"method-continueFireEvent"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"copy","id":"method-copy"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"copyFrom","id":"method-copyFrom"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"createRelayer","id":"method-createRelayer"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"enableBubble","id":"method-enableBubble"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"endEdit","id":"method-endEdit"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"fireEvent","id":"method-fireEvent"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"fireEventArgs","id":"method-fireEventArgs"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"get","id":"method-get"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"getAssociatedData","id":"method-getAssociatedData"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"getBubbleParent","id":"method-getBubbleParent"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"getChanges","id":"method-getChanges"},{"tagname":"method","owner":"Ext.Base","meta":{"private":true},"name":"getConfig","id":"method-getConfig"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"getData","id":"method-getData"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"getId","id":"method-getId"},{"tagname":"method","owner":"Ext.Base","meta":{},"name":"getInitialConfig","id":"method-getInitialConfig"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"getModifiedFieldNames","id":"method-getModifiedFieldNames"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"getObservableId","id":"method-getObservableId"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"getProxy","id":"method-getProxy"},{"tagname":"method","owner":"Ext.Base","meta":{"private":true},"name":"hasConfig","id":"method-hasConfig"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"hasId","id":"method-hasId"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"hasListener","id":"method-hasListener"},{"tagname":"method","owner":"Ext.Base","meta":{"chainable":true,"protected":true},"name":"initConfig","id":"method-initConfig"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"isEqual","id":"method-isEqual"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"isModified","id":"method-isModified"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"isValid","id":"method-isValid"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"itemNameFn","id":"method-itemNameFn"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"join","id":"method-join"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"markDirty","id":"method-markDirty"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"mon","id":"method-mon"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"mun","id":"method-mun"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"on","id":"method-on"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"onClassExtended","id":"method-onClassExtended"},{"tagname":"method","owner":"Ext.Base","meta":{"private":true},"name":"onConfigUpdate","id":"method-onConfigUpdate"},{"tagname":"method","owner":"Ext.data.Model","meta":{"private":true},"name":"prepareAssociatedData","id":"method-prepareAssociatedData"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"prepareClass","id":"method-prepareClass"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"reject","id":"method-reject"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"relayEvents","id":"method-relayEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"removeListener","id":"method-removeListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"removeManagedListener","id":"method-removeManagedListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{"private":true},"name":"removeManagedListenerItem","id":"method-removeManagedListenerItem"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"resumeEvent","id":"method-resumeEvent"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"resumeEvents","id":"method-resumeEvents"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"save","id":"method-save"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"set","id":"method-set"},{"tagname":"method","owner":"Ext.Base","meta":{"chainable":true,"private":true},"name":"setConfig","id":"method-setConfig"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"setDirty","id":"method-setDirty"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"setId","id":"method-setId"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"setProxy","id":"method-setProxy"},{"tagname":"method","owner":"Ext.Base","meta":{"protected":true},"name":"statics","id":"method-statics"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"suspendEvent","id":"method-suspendEvent"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"suspendEvents","id":"method-suspendEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"un","id":"method-un"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"unjoin","id":"method-unjoin"},{"tagname":"method","owner":"Ext.data.Model","meta":{},"name":"validate","id":"method-validate"}],"event":[{"tagname":"event","owner":"Ext.data.Model","meta":{},"name":"idchanged","id":"event-idchanged"}],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.data.Model","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.data.Model","mixins":["Ext.util.Observable"],"mixedInto":[]});