code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Provides a common registry of all menus on a page. * @singleton */ Ext.define('Ext.menu.Manager', { singleton: true, requires: [ 'Ext.util.MixedCollection', 'Ext.util.KeyMap' ], alternateClassName: 'Ext.menu.MenuMgr', uses: ['Ext.menu.Menu'], menus: {}, groups: {},...
JavaScript
/** * A menu containing an Ext.picker.Date Component. * * Notes: * * - Although not listed here, the **constructor** for this class accepts all of the * configuration options of **{@link Ext.picker.Date}**. * - If subclassing DateMenu, any configuration options for the DatePicker must be applied * to the **...
JavaScript
/** * A menu item that contains a togglable checkbox by default, but that can also be a part of a radio group. * * @example * Ext.create('Ext.menu.Menu', { * width: 100, * height: 110, * floating: false, // usually you want this set to True (default) * renderTo: Ext.getB...
JavaScript
/** * A menu object. This is the container to which you may add {@link Ext.menu.Item menu items}. * * Menus may contain either {@link Ext.menu.Item menu items}, or general {@link Ext.Component Components}. * Menus may also contain {@link Ext.panel.AbstractPanel#dockedItems docked items} because it extends {@link Ex...
JavaScript
/** * @private */ Ext.define('Ext.menu.KeyNav', { extend: 'Ext.util.KeyNav', requires: ['Ext.FocusManager'], constructor: function(menu) { var me = this; me.menu = menu; me.callParent([menu.el, { down: me.down, enter: me.enter, esc: me.esc...
JavaScript
/** * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will * add one of these by using "-" in your call to add() or in your items config rather than creating one directly. * * @example * Ext.create('Ext.menu.Menu', { * width: 100, * height: 100, ...
JavaScript
/** * A menu containing a Ext.picker.Color Component. * * Notes: * * - Although not listed here, the **constructor** for this class accepts all of the * configuration options of {@link Ext.picker.Color}. * - If subclassing ColorMenu, any configuration options for the ColorPicker must be * applied to...
JavaScript
/** * Provides searching of Components within Ext.ComponentManager (globally) or a specific * Ext.container.Container on the document with a similar syntax to a CSS selector. * * Components can be retrieved by using their {@link Ext.Component xtype} * * - `component` * - `gridpanel` * * Matching by xtype matc...
JavaScript
/** * The AbstractPlugin class is the base class from which user-implemented plugins should inherit. * * This class defines the essential API of plugins as used by Components by defining the following methods: * * - `init` : The plugin initialization method which the owning Component calls at Component initializ...
JavaScript
/** * The base class that other non-interacting Toolbar Item classes should extend in order to * get some basic common toolbar item functionality. */ Ext.define('Ext.toolbar.Item', { extend: 'Ext.Component', alias: 'widget.tbitem', alternateClassName: 'Ext.Toolbar.Item', enable:Ext.emptyFn, disab...
JavaScript
/** * A simple class that renders text directly into a toolbar. * * @example * Ext.create('Ext.panel.Panel', { * title: 'Panel with TextItem', * width: 300, * height: 200, * tbar: [ * { xtype: 'tbtext', text: 'Sample Text Item' } * ], * rend...
JavaScript
/** * A simple element that adds extra horizontal space between items in a toolbar. * By default a 2px wide space is added via CSS specification: * * .x-toolbar .x-toolbar-spacer { * width: 2px; * } * * Example: * * @example * Ext.create('Ext.panel.Panel', { * title: 'Toolbar...
JavaScript
/** * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using * the right-justified button container. * * @example * Ext.create('Ext.panel.Panel', { * title: 'Toolbar Fill Example', * width: 300, * height: 200, * tbar : [ * ...
JavaScript
/** * Basic Toolbar class. Although the {@link Ext.container.Container#defaultType defaultType} for * Toolbar is {@link Ext.button.Button button}, Toolbar elements (child items for the Toolbar container) * may be virtually any type of Component. Toolbar elements can be created explicitly via their * constructors, o...
JavaScript
/** * A simple class that adds a vertical separator bar between toolbar items (css class: 'x-toolbar-separator'). * * @example * Ext.create('Ext.panel.Panel', { * title: 'Toolbar Separator Example', * width: 300, * height: 200, * tbar : [ * 'Item 1', * ...
JavaScript
/** * As the number of records increases, the time required for the browser to render them increases. Paging is used to * reduce the amount of data exchanged with the client. Note: if there are more records/rows than can be viewed in the * available screen area, vertical scrollbars will be added. * * Paging is typ...
JavaScript
/** * This class compiles the XTemplate syntax into a function object. The function is used * like so: * * function (out, values, parent, xindex, xcount) { * // out is the output array to store results * // values, parent, xindex and xcount have their historical meaning * } * * @ma...
JavaScript
/** * A simple Component for displaying an Adobe Flash SWF movie. The movie will be sized and can participate * in layout like any other Component. * * This component requires the third-party SWFObject library version 2.2 or above. It is not included within * the ExtJS distribution, so you will have to include it ...
JavaScript
/** * An abstract base class which provides shared methods for Components across the Sencha product line. * * Please refer to sub class's documentation * @private */ Ext.define('Ext.AbstractComponent', { /* Begin Definitions */ requires: [ 'Ext.ComponentQuery', 'Ext.ComponentManager', ...
JavaScript
/** * A selection model that renders a column of checkboxes that can be toggled to * select or deselect rows. The default mode for this selection model is MULTI. * * The selection model will inject a header for the checkboxes in the first view * and according to the 'injectCheckbox' configuration. */ Ext.define('...
JavaScript
/** * Implements row based navigation via keyboard. * * Must synchronize across grid sections. */ Ext.define('Ext.selection.RowModel', { extend: 'Ext.selection.Model', alias: 'selection.rowmodel', requires: ['Ext.util.KeyNav'], /** * @private * Number of pixels to scroll to the left/right...
JavaScript
/** * */ Ext.define('Ext.selection.CellModel', { extend: 'Ext.selection.Model', alias: 'selection.cellmodel', requires: ['Ext.util.KeyNav'], isCellModel: true, /** * @cfg {Boolean} enableKeyNav * Turns on/off keyboard navigation within the grid. */ enableKeyNav: true, /**...
JavaScript
/** * Adds custom behavior for left/right keyboard navigation for use with a tree. * Depends on the view having an expand and collapse method which accepts a * record. * * @private */ Ext.define('Ext.selection.TreeModel', { extend: 'Ext.selection.RowModel', alias: 'selection.treemodel', // typic...
JavaScript
/** * @private */ Ext.define('Ext.selection.DataViewModel', { extend: 'Ext.selection.Model', requires: ['Ext.util.KeyNav'], deselectOnContainerClick: true, /** * @cfg {Boolean} enableKeyNav * * Turns on/off keyboard navigation within the DataView. */ enableKeyNav: true, ...
JavaScript
/** * Tracks what records are currently selected in a databound component. * * This is an abstract class and is not meant to be directly used. Databound UI widgets such as * {@link Ext.grid.Panel Grid} and {@link Ext.tree.Panel Tree} should subclass Ext.selection.Model * and provide a way to binding to the compone...
JavaScript
/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * A DragDrop implementation that inserts an empty, bordered div int...
JavaScript
/** * A simple class that provides the basic implementation needed to make any element draggable. */ Ext.define('Ext.dd.DragSource', { extend: 'Ext.dd.DDProxy', requires: [ 'Ext.dd.StatusProxy', 'Ext.dd.DragDropManager' ], /** * @cfg {String} ddGroup * A named drag drop grou...
JavaScript
/** * Provides automatic scrolling of overflow regions in the page during drag operations. * * The ScrollManager configs will be used as the defaults for any scroll container registered with it, but you can also * override most of the configs per scroll container by adding a ddScrollConfig object to the target elem...
JavaScript
/** * A specialized floating Component that supports a drop status icon, {@link Ext.Layer} styles * and auto-repair. This is the default drag proxy used by all Ext.dd components. */ Ext.define('Ext.dd.StatusProxy', { extend: 'Ext.Component', animRepair: false, childEls: [ 'ghost' ], re...
JavaScript
/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * DragDropManager is a singleton that tracks the element interacti...
JavaScript
/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * A DragDrop implementation that does not move, but can be a drop ...
JavaScript
/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * Defines the interface and base operation of items that that can ...
JavaScript
/** * A simple class that provides the basic implementation needed to make any element a drop target that can have * draggable items dropped onto it. The drop has no effect until an implementation of notifyDrop is provided. */ Ext.define('Ext.dd.DropTarget', { extend: 'Ext.dd.DDTarget', requires: ['Ext.dd.S...
JavaScript
/** * A DragTracker listens for drag events on an Element and fires events at the start and end of the drag, * as well as during the drag. This is useful for components such as {@link Ext.slider.Multi}, where there is * an element that can be dragged around to change the Slider's value. * * DragTracker provides a ...
JavaScript
/** * This class provides a container DD instance that allows dropping on multiple child target nodes. * * By default, this class requires that child nodes accepting drop are registered with {@link Ext.dd.Registry}. * However a simpler way to allow a DropZone to manage any number of target elements is to configure ...
JavaScript
/** * Provides easy access to all drag drop components that are registered on a page. Items can be retrieved either * directly by DOM node id, or by passing in the drag drop event that occurred and looking up the event target. */ Ext.define('Ext.dd.Registry', { singleton: true, constructor: function() { ...
JavaScript
/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * A DragDrop implementation where the linked element follows the ...
JavaScript
/** * This class provides a container DD instance that allows dragging of multiple child source nodes. * * This class does not move the drag target nodes, but a proxy element which may contain any DOM structure you wish. The * DOM element to show in the proxy is provided by either a provided implementation of {@lin...
JavaScript
/** * An updateable progress bar component. The progress bar supports two different modes: manual and automatic. * * In manual mode, you are responsible for showing, updating (via {@link #updateProgress}) and clearing the progress bar * as needed from your own code. This method is most appropriate when you want to ...
JavaScript
/** * Private utility class for Ext.resizer.Resizer. * @private */ Ext.define('Ext.resizer.ResizeTracker', { extend: 'Ext.dd.DragTracker', dynamic: true, preserveRatio: false, // Default to no constraint constrainTo: null, proxyCls: Ext.baseCSSPrefix + 'resizable-proxy', construct...
JavaScript
/** * Applies drag handles to an element or component to make it resizable. The drag handles are inserted into the element * (or component's element) and positioned absolute. * * Textarea and img elements will be wrapped with an additional div because these elements do not support child nodes. * The original eleme...
JavaScript
/** * Provides a handle for 9-point resizing of Elements or Components. */ Ext.define('Ext.resizer.Handle', { extend: 'Ext.Component', handleCls: '', baseHandleCls: Ext.baseCSSPrefix + 'resizable-handle', // Ext.resizer.Resizer.prototype.possiblePositions define the regions // which will be passed...
JavaScript
/** * Private utility class for Ext.BorderSplitter. * @private */ Ext.define('Ext.resizer.BorderSplitterTracker', { extend: 'Ext.resizer.SplitterTracker', requires: ['Ext.util.Region'], getPrevCmp: null, getNextCmp: null, // calculate the constrain Region in which the splitter el may be moved. ...
JavaScript
/** * Private utility class for Ext.layout.container.Border. * @private */ Ext.define('Ext.resizer.BorderSplitter', { extend: 'Ext.resizer.Splitter', uses: ['Ext.resizer.BorderSplitterTracker'], alias: 'widget.bordersplitter', // must be configured in by the border layout: collapseTarget: null...
JavaScript
/** * This class functions **between siblings of a {@link Ext.layout.container.VBox VBox} or {@link Ext.layout.container.HBox HBox} * layout** to resize both immediate siblings. * * A Splitter will preserve the flex ratio of any flexed siblings it is required to resize. It does this by setting the `flex` property o...
JavaScript
/** * Private utility class for Ext.Splitter. * @private */ Ext.define('Ext.resizer.SplitterTracker', { extend: 'Ext.dd.DragTracker', requires: ['Ext.util.Region'], enabled: true, overlayCls: Ext.baseCSSPrefix + 'resizable-overlay', createDragOverlay: function () { var overlay; ...
JavaScript
/** * This class parses the XTemplate syntax and calls abstract methods to process the parts. * @private */ Ext.define('Ext.XTemplateParser', { constructor: function (config) { Ext.apply(this, config); }, /** * @property {Number} level The 'for' loop context level. This is adjusted up by on...
JavaScript
/** * Provides a registry of available Plugin classes indexed by a mnemonic code known as the Plugin's ptype. * * A plugin may be specified simply as a *config object* as long as the correct `ptype` is specified: * * { * ptype: 'gridviewdragdrop', * dragText: 'Drag and drop to reorganize' * ...
JavaScript
/** * @class Ext.data.Tree * * This class is used as a container for a series of nodes. The nodes themselves maintain * the relationship between parent/child. The tree itself acts as a manager. It gives functionality * to retrieve a node by its identifier: {@link #getNodeById}. * * The tree also relays events fr...
JavaScript
/** * The Store class encapsulates a client side cache of {@link Ext.data.Model Model} objects. Stores load data via a * {@link Ext.data.proxy.Proxy Proxy}, and also provide functions for {@link #sort sorting}, {@link #filter filtering} * and querying the {@link Ext.data.Model model} instances contained within it. ...
JavaScript
/** * @author Ed Spencer * <p>Small helper class to make creating {@link Ext.data.Store}s from XML data easier. * A XmlStore will be automatically configured with a {@link Ext.data.reader.Xml}.</p> * <p>A store configuration would be something like:<pre><code> var store = new Ext.data.XmlStore({ // store config...
JavaScript
/** * @class Ext.data.Types * <p>This is a static class containing the system-supplied data types which may be given to a {@link Ext.data.Field Field}.<p/> * <p>The properties in this class are used as type indicators in the {@link Ext.data.Field Field} class, so to * test whether a Field is of a certain type, comp...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Errors * * <p>Wraps a collection of validation error responses and provides convenient functions for * accessing and errors for specific fields.</p> * * <p>Usually this class does not need to be instantiated directly - instances are instead created * automatically when...
JavaScript
/** * @class Ext.data.JsonP * @singleton * This class is used to create JSONP requests. JSONP is a mechanism that allows for making * requests for data cross domain. More information is available <a href="http://en.wikipedia.org/wiki/JSONP">here</a>. */ Ext.define('Ext.data.JsonP', { /* Begin Definitions */ ...
JavaScript
/** * @author Don Griffin * * This class is a base for all id generators. It also provides lookup of id generators by * their id. * * Generally, id generators are used to generate a primary key for new model instances. There * are different approaches to solving this problem, so this mechanism has both simple u...
JavaScript
/** * @author Ed Spencer * * Fields are used to define what a Model is. They aren't instantiated directly - instead, when we create a class that * extends {@link Ext.data.Model}, it will automatically create a Field instance for each field configured in a {@link * Ext.data.Model Model}. For example, we might set u...
JavaScript
/** * @author Ed Spencer * * Simple class that represents a Request that will be made by any {@link Ext.data.proxy.Server} subclass. * All this class does is standardize the representation of a Request as used by any ServerProxy subclass, * it does not contain any actual logic or perform the request itself. */ E...
JavaScript
/** * @author Ed Spencer * * Base Writer class used by most subclasses of {@link Ext.data.proxy.Server}. This class is responsible for taking a * set of {@link Ext.data.Operation} objects and a {@link Ext.data.Request} object and modifying that request based on * the Operations. * * For example a Ext.data.writer...
JavaScript
/** * @class Ext.data.writer.Json This class is used to write {@link Ext.data.Model} data to the server in a JSON format. The {@link #allowSingle} configuration can be set to false to force the records to always be encoded in an array, even if there is only a single record being sent. * @markdown */ Ext.define('Ex...
JavaScript
/** * @author Ed Spencer * @class Ext.data.writer.Xml This class is used to write {@link Ext.data.Model} data to the server in an XML format. The {@link #documentRoot} property is used to specify the root element in the XML document. The {@link #record} option is used to specify the element name for each record that...
JavaScript
/** * Small helper class to create an {@link Ext.data.Store} configured with an {@link Ext.data.proxy.Direct} * and {@link Ext.data.reader.Json} to make interacting with an {@link Ext.direct.Manager} server-side * {@link Ext.direct.Provider Provider} easier. To create a different proxy/reader combination create a ba...
JavaScript
/** * This class is used as a set of methods that are applied to the prototype of a * Model to decorate it with a Node API. This means that models used in conjunction with a tree * will have all of the tree related methods available on the model. In general this class will * not be used directly by the developer. T...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Batch * * <p>Provides a mechanism to run one or more {@link Ext.data.Operation operations} in a given order. Fires the 'operationcomplete' event * after the completion of each Operation, and the 'complete' event when all Operations have been successfully executed. Fires a...
JavaScript
/** * Node Store * @private */ Ext.define('Ext.data.NodeStore', { extend: 'Ext.data.Store', alias: 'store.node', requires: ['Ext.data.NodeInterface'], /** * @cfg {Ext.data.Model} node * The Record you want to bind this Store to. Note that * this record will be decorated with the Ext.d...
JavaScript
/** * @class Ext.data.JsonPStore * @extends Ext.data.Store * <p>Small helper class to make creating {@link Ext.data.Store}s from different domain JSON data easier. * A JsonPStore will be automatically configured with a {@link Ext.data.reader.Json} and a {@link Ext.data.proxy.JsonP JsonPProxy}.</p> * <p>A store con...
JavaScript
/** * @author Ed Spencer * * Readers are used to interpret data to be loaded into a {@link Ext.data.Model Model} instance or a {@link * Ext.data.Store Store} - often in response to an AJAX request. In general there is usually no need to create * a Reader instance directly, since a Reader is almost always used toge...
JavaScript
/** * @author Ed Spencer * * The JSON Reader is used by a Proxy to read a server response that is sent back in JSON format. This usually * happens as a result of loading a Store - for example we might create something like this: * * Ext.define('User', { * extend: 'Ext.data.Model', * fields: ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.reader.Array * * <p>Data reader class to create an Array of {@link Ext.data.Model} objects from an Array. * Each element of that Array represents a row of data fields. The * fields are pulled into a Record object using as a subscript, the <code>mapping</code> property ...
JavaScript
/** * @author Ed Spencer * * The XML Reader is used by a Proxy to read a server response that is sent back in XML format. This usually happens as * a result of loading a Store - for example we might create something like this: * * Ext.define('User', { * extend: 'Ext.data.Model', * fields: ['...
JavaScript
/** * The TreeStore is a store implementation that is backed by by an {@link Ext.data.Tree}. * It provides convenience methods for loading nodes, as well as the ability to use * the hierarchical tree structure combined with a store. This class is generally used * in conjunction with {@link Ext.tree.Panel}. This cla...
JavaScript
/** * @private */ Ext.define('Ext.data.BufferStore', { extend: 'Ext.data.Store', alias: 'store.buffer', sortOnLoad: false, filterOnLoad: false, constructor: function() { Ext.Error.raise('The BufferStore class has been deprecated. Instead, specify the buffered config option on Ext.data...
JavaScript
/** * This class is used to send requests to the server using {@link Ext.direct.Manager Ext.Direct}. When a * request is made, the transport mechanism is handed off to the appropriate * {@link Ext.direct.RemotingProvider Provider} to complete the call. * * # Specifying the function * * This proxy expects a Direc...
JavaScript
/** * @author Ed Spencer * * In-memory proxy. This proxy simply uses a local variable for data storage/retrieval, so its contents are lost on * every page refresh. * * Usually this Proxy isn't used directly, serving instead as a helper to a {@link Ext.data.Store Store} where a reader * is required to load data. ...
JavaScript
/** * @author Ed Spencer * * Proxy which uses HTML5 session storage as its data storage/retrieval mechanism. If this proxy is used in a browser * where session storage is not supported, the constructor will throw an error. A session storage proxy requires a * unique ID which is used as a key in which all record da...
JavaScript
/** * @author Ed Spencer * * The LocalStorageProxy uses the new HTML5 localStorage API to save {@link Ext.data.Model Model} data locally on the * client browser. HTML5 localStorage is a key-value store (e.g. cannot save complex objects like JSON), so * LocalStorageProxy automatically serializes and deserializes da...
JavaScript
/** * @author Ed Spencer * * The JsonP proxy is useful when you need to load data from a domain other than the one your application is running on. If * your application is running on http://domainA.com it cannot use {@link Ext.data.proxy.Ajax Ajax} to load its data * from http://domainB.com because cross-domain aj...
JavaScript
/** * @author Ed Spencer * * The Rest proxy is a specialization of the {@link Ext.data.proxy.Ajax AjaxProxy} which simply maps the four actions * (create, read, update and destroy) to RESTful HTTP verbs. For example, let's set up a {@link Ext.data.Model Model} * with an inline Rest proxy * * Ext.define('User...
JavaScript
/** * @author Ed Spencer * * WebStorageProxy is simply a superclass for the {@link Ext.data.proxy.LocalStorage LocalStorage} and {@link * Ext.data.proxy.SessionStorage SessionStorage} proxies. It uses the new HTML5 key/value client-side storage objects to * save {@link Ext.data.Model model instances} for offline u...
JavaScript
/** * @author Ed Spencer * * AjaxProxy is one of the most widely-used ways of getting data into your application. It uses AJAX requests to load * data from the server, usually to be placed into a {@link Ext.data.Store Store}. Let's take a look at a typical setup. * Here we're going to set up a Store that has an Aj...
JavaScript
/** * @author Ed Spencer * * Base class for any client-side storage. Used as a superclass for {@link Ext.data.proxy.Memory Memory} and * {@link Ext.data.proxy.WebStorage Web Storage} proxies. Do not use directly, use one of the subclasses instead. * @private */ Ext.define('Ext.data.proxy.Client', { extend: 'E...
JavaScript
/** * @author Ed Spencer * * ServerProxy is a superclass of {@link Ext.data.proxy.JsonP JsonPProxy} and {@link Ext.data.proxy.Ajax AjaxProxy}, and * would not usually be used directly. * * ServerProxy should ideally be named HttpProxy as it is a superclass for all HTTP proxies - for Ext JS 4.x it has been * call...
JavaScript
/** * @author Ed Spencer * * Proxies are used by {@link Ext.data.Store Stores} to handle the loading and saving of {@link Ext.data.Model Model} * data. Usually developers will not need to create or interact with proxies directly. * * # Types of Proxy * * There are two main types of Proxy - {@link Ext.data.proxy...
JavaScript
/** * @class Ext.data.SortTypes * This class defines a series of static methods that are used on a * {@link Ext.data.Field} for performing sorting. The methods cast the * underlying values into a data type that is appropriate for sorting on * that particular field. If a {@link Ext.data.Field#type} is specified, ...
JavaScript
/** * @author Ed Spencer * * <p>Small helper class to make creating {@link Ext.data.Store}s from JSON data easier. * A JsonStore will be automatically configured with a {@link Ext.data.reader.Json}.</p> * * <p>A store configuration would be something like:</p> * <pre><code> var store = new Ext.data.JsonStore({ ...
JavaScript
/** * The Connection class encapsulates a connection to the page's originating domain, allowing requests to be made either * to a configured URL, or to a URL specified at request time. * * Requests made by this class are asynchronous, and will return immediately. No data from the server will be available * to the ...
JavaScript
/** * @author Ed Spencer * * Simple wrapper class that represents a set of records returned by a Proxy. */ Ext.define('Ext.data.ResultSet', { /** * @cfg {Boolean} loaded * True if the records have already been loaded. This is only meaningful when dealing with * SQL-backed proxies. */ loa...
JavaScript
/** * @author Ed Spencer * @class Ext.data.association.BelongsTo * * Represents a many to one association with another model. The owner model is expected to have * a foreign key which references the primary key of the associated model: * * Ext.define('Category', { * extend: 'Ext.data.Model', * ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.association.HasMany * * <p>Represents a one-to-many relationship between two models. Usually created indirectly via a model definition:</p> * <pre><code> Ext.define('Product', { extend: 'Ext.data.Model', fields: [ {name: 'id', type: 'int'}, ...
JavaScript
/** * @author Ed Spencer * * Associations enable you to express relationships between different {@link Ext.data.Model Models}. Let's say we're * writing an ecommerce system where Users can make Orders - there's a relationship between these Models that we can * express like this: * * Ext.define('User', { * ...
JavaScript
/** * @class Ext.data.association.HasOne * * Represents a one to one association with another model. The owner model is expected to have * a foreign key which references the primary key of the associated model: * * Ext.define('Address', { * extend: 'Ext.data.Model', * fields: [ * ...
JavaScript
/** * @author Ed Spencer * * AbstractStore is a superclass of {@link Ext.data.Store} and {@link Ext.data.TreeStore}. It's never used directly, * but offers a set of methods used by both of those subclasses. * * We've left it here in the docs for reference purposes, but unless you need to make a whole new type of ...
JavaScript
/** * @author Ed Spencer * * Small helper class to make creating {@link Ext.data.Store}s from Array data easier. An ArrayStore will be * automatically configured with a {@link Ext.data.reader.Array}. * * A store configuration would be something like: * * var store = Ext.create('Ext.data.ArrayStore', { * ...
JavaScript
/** * @docauthor Evan Trimboli <evan@sencha.com> * * Contains a collection of all stores that are created that have an identifier. An identifier can be assigned by * setting the {@link Ext.data.AbstractStore#storeId storeId} property. When a store is in the StoreManager, it can be * referred to via it's identifier...
JavaScript
/** * @extend Ext.data.IdGenerator * @author Don Griffin * * This class generates UUID's according to RFC 4122. This class has a default id property. * This means that a single instance is shared unless the id property is overridden. Thus, * two {@link Ext.data.Model} instances configured like the following share...
JavaScript
/** * @author Ed Spencer * * Represents a single read or write operation performed by a {@link Ext.data.proxy.Proxy Proxy}. Operation objects are * used to enable communication between Stores and Proxies. Application developers should rarely need to interact with * Operation objects directly. * * Several Operati...
JavaScript
/** * @author Ed Spencer * * A Model represents some object that your application manages. For example, one might define a Model for Users, * Products, Cars, or any other real-world object that we want to model in the system. Models are registered via the * {@link Ext.ModelManager model manager}, and are used by {...
JavaScript
/** * @author Ed Spencer * * This singleton contains a set of validation functions that can be used to validate any type of data. They are most * often used in {@link Ext.data.Model Models}, where they are automatically set up and executed. */ Ext.define('Ext.data.validations', { singleton: true, /** ...
JavaScript
/** * @author Don Griffin * * This class is a sequential id generator. A simple use of this class would be like so: * * Ext.define('MyApp.data.MyModel', { * extend: 'Ext.data.Model', * idgen: 'sequential' * }); * // assign id's of 1, 2, 3, etc. * * An example of a configured gener...
JavaScript
/** * @author Ed Spencer * @class Ext.ModelManager The ModelManager keeps track of all {@link Ext.data.Model} types defined in your application. __Creating Model Instances__ Model instances can be created by using the {@link Ext#create Ext.create} method. Ext.create replaces the deprecated {@link #create Ext.Model...
JavaScript
/** * @author Ed Spencer * * Represents a single Tab in a {@link Ext.tab.Panel TabPanel}. A Tab is simply a slightly customized {@link Ext.button.Button Button}, * styled to look like a tab. Tabs are optionally closable, and can also be disabled. 99% of the time you will not * need to create Tabs manually as the...
JavaScript