code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * A class used to load remote content to an Element. Sample usage: * * Ext.get('el').load({ * url: 'myPage.php', * scripts: true, * params: { * id: 1 * } * }); * * In general this class will not be instanced directly, rather the {@link Ext.Element#metho...
JavaScript
/** * Provides specific methods to draw with SVG. */ Ext.define('Ext.draw.engine.Svg', { /* Begin Definitions */ extend: 'Ext.draw.Surface', requires: ['Ext.draw.Draw', 'Ext.draw.Sprite', 'Ext.draw.Matrix', 'Ext.Element'], /* End Definitions */ engine: 'Svg', trimRe: /^\s+|\s+$/g, sp...
JavaScript
/** * Exports a {@link Ext.draw.Surface Surface} to an image. To do this, * the svg string must be sent to a remote server and processed. * * # Sending the data * * A post request is made to the URL. The following fields are sent: * * + width: The width of the image * + height: The height of the image * + typ...
JavaScript
/** * A utility class for exporting a {@link Ext.draw.Surface Surface} to a string * that may be saved or used for processing on the server. * * @singleton */ Ext.define('Ext.draw.engine.SvgExporter', function(){ var commaRe = /,/g, fontRegex = /(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)\s('*.*'*)/, ...
JavaScript
/** * Provides specific methods to draw with VML. */ Ext.define('Ext.draw.engine.Vml', { /* Begin Definitions */ extend: 'Ext.draw.Surface', requires: ['Ext.draw.Draw', 'Ext.draw.Color', 'Ext.draw.Sprite', 'Ext.draw.Matrix', 'Ext.Element'], /* End Definitions */ engine: 'Vml', map: {M: "...
JavaScript
/** * A Sprite is an object rendered in a Drawing surface. * * ## Types * * The following sprite types are supported: * * ### Rect * * Rectangle requires `width` and `height` attributes: * * @example * Ext.create('Ext.draw.Component', { * renderTo: Ext.getBody(), * width: 200, * ...
JavaScript
/** * A Surface is an interface to render methods inside {@link Ext.draw.Component}. * * Most of the Surface methods are abstract and they have a concrete implementation * in {@link Ext.draw.engine.Vml VML} or {@link Ext.draw.engine.Svg SVG} engines. * * A Surface contains methods to render {@link Ext.draw.Sprite...
JavaScript
/** * @private */ Ext.define('Ext.draw.Matrix', { /* Begin Definitions */ requires: ['Ext.draw.Draw'], /* End Definitions */ constructor: function(a, b, c, d, e, f) { if (a != null) { this.matrix = [[a, c, e], [b, d, f], [0, 0, 1]]; } else { this.mat...
JavaScript
/** * A composite Sprite handles a group of sprites with common methods to a sprite * such as `hide`, `show`, `setAttributes`. These methods are applied to the set of sprites * added to the group. * * CompositeSprite extends {@link Ext.util.MixedCollection} so you can use the same methods * in `MixedCollection` t...
JavaScript
/** * DD implementation for Panels. * @private */ Ext.define('Ext.draw.SpriteDD', { extend: 'Ext.dd.DragSource', constructor : function(sprite, cfg){ var me = this, el = sprite.el; me.sprite = sprite; me.el = el; me.dragData = {el: el, sprite: sprite}; me....
JavaScript
/** * This class encapsulates a drawn text item as rendered by the Ext.draw package within a Component which can be * then used anywhere in an ExtJS application just like any other Component. * * ## Example usage * * @example * Ext.create('Ext.panel.Panel', { * title: 'Panel with VerticalTextIte...
JavaScript
/** * The Draw Component is a surface in which sprites can be rendered. The Draw Component * manages and holds an {@link Ext.draw.Surface} instance where * {@link Ext.draw.Sprite Sprites} can be appended. * * One way to create a draw component is: * * @example * var drawComponent = Ext.create('Ext.draw....
JavaScript
/** * Represents an RGB color and provides helper functions get * color components in HSL color space. */ Ext.define('Ext.draw.Color', { /* Begin Definitions */ /* End Definitions */ colorToHexRe: /(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/, rgbRe: /\s*rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s...
JavaScript
/** * @class Ext.draw.Draw * Base Drawing class. Provides base drawing functions. * @private */ Ext.define('Ext.draw.Draw', { /* Begin Definitions */ singleton: true, requires: ['Ext.draw.Color'], /* End Definitions */ pathToStringRE: /,?([achlmqrstvxz]),?/gi, pathCommandRE: /([achlmqst...
JavaScript
/** * A template class that supports advanced functionality like: * * - Autofilling arrays using templates and sub-templates * - Conditional processing with basic comparison operators * - Basic math function support * - Execute arbitrary inline code with special built-in template variables * - Custom member func...
JavaScript
/** * Base Manager class */ Ext.define('Ext.AbstractManager', { /* Begin Definitions */ requires: ['Ext.util.HashMap'], /* End Definitions */ typeName: 'type', constructor: function(config) { Ext.apply(this, config || {}); /** * @property {Ext.util.HashMap} all ...
JavaScript
/** * A mixin which allows a component to be configured and decorated with a label and/or error message as is * common for form fields. This is used by e.g. Ext.form.field.Base and Ext.form.FieldContainer * to let them be managed by the Field layout. * * NOTE: This mixin is mainly for internal library use and most...
JavaScript
/** * FieldContainer is a derivation of {@link Ext.container.Container Container} that implements the * {@link Ext.form.Labelable Labelable} mixin. This allows it to be configured so that it is rendered with * a {@link #fieldLabel field label} and optional {@link #msgTarget error message} around its sub-items. * Th...
JavaScript
/** * @docauthor Robert Dougan <rob@sencha.com> * * This class creates a multiline text field, which can be used as a direct replacement for traditional * textarea fields. In addition, it supports automatically {@link #grow growing} the height of the textarea to * fit its content. * * All of the configuration op...
JavaScript
/** * Provides a time input field with a time dropdown and automatic time validation. * * This field recognizes and uses JavaScript Date objects as its main {@link #value} type (only the time portion of the * date is used; the month/day/year are ignored). In addition, it recognizes string values which are parsed ac...
JavaScript
/** * A basic hidden field for storing hidden values in forms that need to be passed in the form submit. * * This creates an actual input element with type="submit" in the DOM. While its label is * {@link #hideLabel not rendered} by default, it is still a real component and may be sized according * to its owner co...
JavaScript
/** * @docauthor Robert Dougan <rob@sencha.com> * * Single radio field. Similar to checkbox, but automatically handles making sure only one radio is checked * at a time within a group of radios with the same name. * * # Labeling * * In addition to the {@link Ext.form.Labelable standard field labeling options}, ...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * This mixin provides a common interface for the logical behavior and state of form fields, including: * * - Getter and setter methods for field values * - Events and methods for tracking value and validity changes * - Methods for triggering validation * * *...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * Base class for form fields that provides default event handling, rendering, and other common functionality * needed by all form field types. Utilizes the {@link Ext.form.field.Field} mixin for value handling and validation, * and the {@link Ext.form.Labelable}...
JavaScript
/** * @singleton * @alternateClassName Ext.form.VTypes * * This is a singleton object which contains a set of commonly used field validation functions * and provides a mechanism for creating reusable custom field validations. * The following field validation functions are provided out of the box: * * - {@link #...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * A file upload field which has custom styling and allows control over the button text and other * features of {@link Ext.form.field.Text text fields} like {@link Ext.form.field.Text#emptyText empty text}. * It uses a hidden file input element behind the scenes ...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * A numeric text field that provides automatic keystroke filtering to disallow non-numeric characters, * and numeric validation to limit the value to a range of valid numbers. The range of acceptable number * values can be controlled by setting the {@link #minVa...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * A combobox control with support for autocomplete, remote loading, and many other features. * * A ComboBox is like a combination of a traditional HTML text `<input>` field and a `<select>` * field; the user is able to type freely into the field, and/or pick va...
JavaScript
/** * An abstract class for fields that have a single trigger which opens a "picker" popup below the field, e.g. a combobox * menu list or a date picker. It provides a base implementation for toggling the picker's visibility when the trigger * is clicked, as well as keyboard navigation and some basic events. Sizing ...
JavaScript
/** * Provides a lightweight HTML Editor component. Some toolbar features are not supported by Safari and will be * automatically hidden when needed. These are noted in the config options where appropriate. * * The editor's toolbar buttons have tooltips defined in the {@link #buttonTips} property, but they are not ...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * A basic text field. Can be used as a direct replacement for traditional text inputs, * or as the base class for more sophisticated input controls (like {@link Ext.form.field.TextArea} * and {@link Ext.form.field.ComboBox}). Has support for empty-field placeho...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * Provides a date input field with a {@link Ext.picker.Date date picker} dropdown and automatic date * validation. * * This field recognizes and uses the JavaScript Date object as its main {@link #value} type. In addition, * it recognizes string values which a...
JavaScript
/** * A display-only text field which is not validated and not submitted. This is useful for when you want to display a * value from a form's {@link Ext.form.Basic#load loaded data} but do not want to allow the user to edit or submit that * value. The value can be optionally {@link #htmlEncode HTML encoded} if it co...
JavaScript
/** * Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). * The trigger has no default action, so you must assign a function to implement the trigger click handler by overriding * {@link #onTriggerClick}. You can create a Trigger field directly, as it...
JavaScript
/** * A field with a pair of up/down spinner buttons. This class is not normally instantiated directly, * instead it is subclassed and the {@link #onSpinUp} and {@link #onSpinDown} methods are implemented * to handle when the buttons are clicked. A good example of this is the {@link Ext.form.field.Number} * field w...
JavaScript
/** * @docauthor Robert Dougan <rob@sencha.com> * * Single checkbox field. Can be used as a direct replacement for traditional checkbox fields. Also serves as a * parent class for {@link Ext.form.field.Radio radio buttons}. * * # Labeling * * In addition to the {@link Ext.form.Labelable standard field labeling ...
JavaScript
/** * A {@link Ext.form.FieldContainer field container} which has a specialized layout for arranging * {@link Ext.form.field.Checkbox} controls into columns, and provides convenience * {@link Ext.form.field.Field} methods for {@link #getValue getting}, {@link #setValue setting}, * and {@link #validate validating} t...
JavaScript
/** * @private * Private utility class for managing all {@link Ext.form.field.Radio} fields grouped by name. */ Ext.define('Ext.form.RadioManager', { extend: 'Ext.util.MixedCollection', singleton: true, getByName: function(name, formId) { return this.filterBy(function(item) { return ...
JavaScript
/** * A {@link Ext.form.FieldContainer field container} which has a specialized layout for arranging * {@link Ext.form.field.Radio} controls into columns, and provides convenience {@link Ext.form.field.Field} * methods for {@link #getValue getting}, {@link #setValue setting}, and {@link #validate validating} the * ...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * A container for grouping sets of fields, rendered as a HTML `fieldset` element. The {@link #title} * config will be rendered as the fieldset's `legend`. * * While FieldSets commonly contain simple groups of fields, they are general {@link Ext.container.Contai...
JavaScript
/** * Provides input field management, validation, submission, and form loading services for the collection * of {@link Ext.form.field.Field Field} instances within a {@link Ext.container.Container}. It is recommended * that you use a {@link Ext.form.Panel} as the form container, as that has logic to automatically ...
JavaScript
/** * @private * Private utility class for managing all {@link Ext.form.field.Checkbox} fields grouped by name. */ Ext.define('Ext.form.CheckboxManager', { extend: 'Ext.util.MixedCollection', singleton: true, getByName: function(name) { return this.filterBy(function(item) { return it...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * Produces a standalone `<label />` element which can be inserted into a form and be associated with a field * in that form using the {@link #forId} property. * * **NOTE:** in most cases it will be more appropriate to use the {@link Ext.form.Labelable#fieldLab...
JavaScript
/** * A class which handles loading of data from a server into the Fields of an {@link Ext.form.Basic}. * * Instances of this class are only created by a {@link Ext.form.Basic Form} when {@link Ext.form.Basic#load load}ing. * * ## Response Packet Criteria * * A response packet **must** contain: * * - **`succ...
JavaScript
/** * A class which handles submission of data from {@link Ext.form.Basic Form}s using a standard `<form>` element submit. * It does not handle the response from the submit. * * If validation of the form fields fails, the Form's afterAction method will be called. Otherwise, afterAction will not * be called. * * ...
JavaScript
/** * The subclasses of this class provide actions to perform upon {@link Ext.form.Basic Form}s. * * Instances of this class are only created by a {@link Ext.form.Basic Form} when the Form needs to perform an action * such as submit or load. The Configuration options listed for this class are set through the Form's...
JavaScript
/** * Provides {@link Ext.direct.Manager} support for loading form data. * * This example illustrates usage of Ext.direct.Direct to **load** a form through Ext.Direct. * * var myFormPanel = new Ext.form.Panel({ * // configs for FormPanel * title: 'Basic Information', * renderTo: docu...
JavaScript
/** * Provides Ext.direct support for submitting form data. * * This example illustrates usage of Ext.direct.Direct to **submit** a form through Ext.Direct. * * var myFormPanel = new Ext.form.Panel({ * // configs for FormPanel * title: 'Basic Information', * renderTo: document.body, ...
JavaScript
/** * A class which handles submission of data from {@link Ext.form.Basic Form}s and processes the returned response. * * Instances of this class are only created by a {@link Ext.form.Basic Form} when * {@link Ext.form.Basic#submit submit}ting. * * # Response Packet Criteria * * A response packet may contain: ...
JavaScript
/** * @docauthor Jason Johnston <jason@sencha.com> * * FormPanel provides a standard container for forms. It is essentially a standard {@link Ext.panel.Panel} which * automatically creates a {@link Ext.form.Basic BasicForm} for managing any {@link Ext.form.field.Field} * objects that are added as descendants of t...
JavaScript
/** * A mixin for {@link Ext.container.Container} components that are likely to have form fields in their * items subtree. Adds the following capabilities: * * - Methods for handling the addition and removal of {@link Ext.form.Labelable} and {@link Ext.form.field.Field} * instances at any depth within the contai...
JavaScript
/** * @private * * This class is used only by the grid's HeaderContainer docked child. * * It adds the ability to shrink the vertical size of the inner container element back if a grouped * column header has all its child columns dragged out, and the whole HeaderContainer needs to shrink back down. * * Also, af...
JavaScript
/** * @private * * Lockable is a private mixin which injects lockable behavior into any * TablePanel subclass such as GridPanel or TreePanel. TablePanel will * automatically inject the Ext.grid.Lockable mixin in when one of the * these conditions are met: * * - The TablePanel has the lockable configuration set...
JavaScript
//<debug> Ext.define('Ext.grid.Scroller', { constructor: Ext.deprecated() }); //</debug>
JavaScript
// Currently has the following issues: // - Does not handle postEditValue // - Fields without editors need to sync with their values in Store // - starting to edit another record while already editing and dirty should probably prevent it // - aggregating validation messages // - tabIndex is not managed bc we leave elem...
JavaScript
/** * A custom {@link Ext.data.Store} for the {@link Ext.grid.property.Grid}. This class handles the mapping * between the custom data source objects supported by the grid and the {@link Ext.grid.property.Property} format * used by the {@link Ext.data.Store} base class. */ Ext.define('Ext.grid.property.Store', { ...
JavaScript
/** * A custom HeaderContainer for the {@link Ext.grid.property.Grid}. * Generally it should not need to be used directly. */ Ext.define('Ext.grid.property.HeaderContainer', { extend: 'Ext.grid.header.Container', alternateClassName: 'Ext.grid.PropertyColumnModel', nameWidth: 115, // private -...
JavaScript
/** * A specialized grid implementation intended to mimic the traditional property grid as typically seen in * development IDEs. Each row in the grid represents a property of some object, and the data is stored * as a set of name/value pairs in {@link Ext.grid.property.Property Properties}. Example usage: * * ...
JavaScript
/** * A specific {@link Ext.data.Model} type that represents a name/value pair and is made to work with the * {@link Ext.grid.property.Grid}. Typically, Properties do not need to be created directly as they can be * created implicitly by simply using the appropriate data configs either via the * {@link Ext.grid.pro...
JavaScript
/** * A Column definition class which renders boolean data fields. See the {@link Ext.grid.column.Column#xtype xtype} * config option of {@link Ext.grid.column.Column} for more details. * * @example * Ext.create('Ext.data.Store', { * storeId:'sampleStore', * fields:[ * {name: '...
JavaScript
/** * This class specifies the definition for a column inside a {@link Ext.grid.Panel}. It encompasses * both the grid header configuration as well as displaying data within the grid itself. If the * {@link #columns} configuration is specified, this column will become a column group and can * contain other columns ...
JavaScript
/** * A Grid header type which renders an icon, or a series of icons in a grid cell, and offers a scoped click * handler for each icon. * * @example * Ext.create('Ext.data.Store', { * storeId:'employeeStore', * fields:['firstname', 'lastname', 'seniority', 'dep', 'hired'], * data...
JavaScript
/** * A Column definition class which renders a value by processing a {@link Ext.data.Model Model}'s * {@link Ext.data.Model#persistenceProperty data} using a {@link #tpl configured} * {@link Ext.XTemplate XTemplate}. * * @example * Ext.create('Ext.data.Store', { * storeId:'employeeStore', * ...
JavaScript
/** * A Column definition class which renders a numeric data field according to a {@link #format} string. * * @example * Ext.create('Ext.data.Store', { * storeId:'sampleStore', * fields:[ * { name: 'symbol', type: 'string' }, * { name: 'price', type: 'number' }, * ...
JavaScript
/** * A Column definition class which renders a passed date according to the default locale, or a configured * {@link #format}. * * @example * Ext.create('Ext.data.Store', { * storeId:'sampleStore', * fields:[ * { name: 'symbol', type: 'string' }, * { name: 'date...
JavaScript
/** * This is a utility class that can be passed into a {@link Ext.grid.column.Column} as a column config that provides * an automatic row numbering column. * * Usage: * * columns: [ * {xtype: 'rownumberer'}, * {text: "Company", flex: 1, sortable: true, dataIndex: 'company'}, * {te...
JavaScript
/** * The grid View class provides extra {@link Ext.grid.Panel} specific functionality to the * {@link Ext.view.Table}. In general, this class is not instanced directly, instead a viewConfig * option is passed to the grid: * * Ext.create('Ext.grid.Panel', { * // other options * viewConfig: { ...
JavaScript
/** * The rowbody feature enhances the grid's markup to have an additional * tr -> td -> div which spans the entire width of the original row. * * This is useful to to associate additional information with a particular * record in a grid. * * Rowbodies are initially hidden unless you override getAdditionalData. ...
JavaScript
/** * A small abstract class that contains the shared behaviour for any summary * calculations to be used in the grid. */ Ext.define('Ext.grid.feature.AbstractSummary', { /* Begin Definitions */ extend: 'Ext.grid.feature.Feature', alias: 'feature.abstractsummary', /* End Definitions */ ...
JavaScript
/** * This feature adds an aggregate summary row at the bottom of each group that is provided * by the {@link Ext.grid.feature.Grouping} feature. There are two aspects to the summary: * * ## Calculation * * The summary value needs to be calculated for each column in the grid. This is controlled * by the summaryT...
JavaScript
/** * A feature is a type of plugin that is specific to the {@link Ext.grid.Panel}. It provides several * hooks that allows the developer to inject additional functionality at certain points throughout the * grid creation cycle. This class provides the base template methods that are available to the developer, * i...
JavaScript
/** * */ Ext.define('Ext.grid.feature.Chunking', { extend: 'Ext.grid.feature.Feature', alias: 'feature.chunking', chunkSize: 20, rowHeight: Ext.isIE ? 27 : 26, visibleChunk: 0, hasFeatureEvent: false, attachEvents: function() { this.view.el.on('scroll', this.onBodyScroll, this, {b...
JavaScript
/** * This feature is used to place a summary row at the bottom of the grid. If using a grouping, * see {@link Ext.grid.feature.GroupingSummary}. There are 2 aspects to calculating the summaries, * calculation and rendering. * * ## Calculation * The summary value needs to be calculated for each column in the g...
JavaScript
/** * @private */ Ext.define('Ext.grid.feature.RowWrap', { extend: 'Ext.grid.feature.Feature', alias: 'feature.rowwrap', // turn off feature events. hasFeatureEvent: false, init: function() { if (!this.disabled) { this.enable(); } }, getRowSelector: function(...
JavaScript
/** * This feature allows to display the grid rows aggregated into groups as specified by the {@link Ext.data.Store#groupers} * specified on the Store. The group will show the title for the group name and then the appropriate records for the group * underneath. The groups can also be expanded and collapsed. * * #...
JavaScript
/** * This class is used internally to provide a single interface when using * a locking grid. Internally, the locking grid creates two separate grids, * so this class is used to map calls appropriately. * @private */ Ext.define('Ext.grid.LockingView', { mixins: { observable: 'Ext.util.Observable' ...
JavaScript
/** * This class provides an abstract grid editing plugin on selected {@link Ext.grid.column.Column columns}. * The editable columns are specified by providing an {@link Ext.grid.column.Column#editor editor} * in the {@link Ext.grid.column.Column column configuration}. * * **Note:** This class should not be used d...
JavaScript
/** * @private */ Ext.define('Ext.grid.plugin.HeaderReorderer', { extend: 'Ext.AbstractPlugin', requires: ['Ext.grid.header.DragZone', 'Ext.grid.header.DropZone'], alias: 'plugin.gridheaderreorderer', init: function(headerCt) { this.headerCt = headerCt; headerCt.on({ rende...
JavaScript
/** * Plugin to add header resizing functionality to a HeaderContainer. * Always resizing header to the left of the splitter you are resizing. */ Ext.define('Ext.grid.plugin.HeaderResizer', { extend: 'Ext.AbstractPlugin', requires: ['Ext.dd.DragTracker', 'Ext.util.Region'], alias: 'plugin.gridheaderresiz...
JavaScript
/** * The Ext.grid.plugin.RowEditing plugin injects editing at a row level for a Grid. When editing begins, * a small floating dialog will be shown for the appropriate row. Each editable column will show a field * for editing. There is a button to save or cancel all changes for the edit. * * The field that will be...
JavaScript
/** * The Ext.grid.plugin.CellEditing plugin injects editing at a cell level for a Grid. Only a single * cell will be editable at a time. The field that will be used for the editor is defined at the * {@link Ext.grid.column.Column#editor editor}. The editor can be a field instance or a field configuration. * * If ...
JavaScript
/** * This plugin provides drag and/or drop functionality for a GridView. * * It creates a specialized instance of {@link Ext.dd.DragZone DragZone} which knows how to drag out of a {@link * Ext.grid.View GridView} and loads the data object which is passed to a cooperating {@link Ext.dd.DragZone DragZone}'s * metho...
JavaScript
/** * Implements infinite scrolling of a grid, allowing users can scroll * through thousands of records without the performance penalties of * renderering all the records on screen at once. The grid should be * bound to a *buffered* store with a pageSize specified. * * The number of rows rendered outside the visi...
JavaScript
/** * Component layout for grid column headers which have a title element at the top followed by content. * @private */ Ext.define('Ext.grid.ColumnComponentLayout', { extend: 'Ext.layout.component.Auto', alias: 'layout.columncomponent', type: 'columncomponent', setWidthInDom: true, getContentH...
JavaScript
/** * @author Aaron Conran * @docauthor Ed Spencer * * Grids are an excellent way of showing large amounts of tabular data on the client side. Essentially a supercharged * `<table>`, GridPanel makes it easy to fetch, sort and filter large amounts of data. * * Grids are composed of two main pieces - a {@link Ext....
JavaScript
/** * Container which holds headers and is docked at the top or bottom of a TablePanel. * The HeaderContainer drives resizing/moving/hiding of columns within the TableView. * As headers are hidden, moved or resized the headercontainer is responsible for * triggering changes within the view. */ Ext.define('Ext.grid...
JavaScript
/** * @private */ Ext.define('Ext.grid.header.DropZone', { extend: 'Ext.dd.DropZone', colHeaderCls: Ext.baseCSSPrefix + 'column-header', proxyOffsets: [-4, -9], constructor: function(headerCt){ this.headerCt = headerCt; this.ddGroup = this.getDDGroup(); this.callParent([header...
JavaScript
/** * @private */ Ext.define('Ext.grid.header.DragZone', { extend: 'Ext.dd.DragZone', colHeaderCls: Ext.baseCSSPrefix + 'column-header', maxProxyWidth: 120, constructor: function(headerCt) { this.headerCt = headerCt; this.ddGroup = this.getDDGroup(); this.callParent([headerCt...
JavaScript
/** * Internal utility class that provides default configuration for cell editing. * @private */ Ext.define('Ext.grid.CellEditor', { extend: 'Ext.Editor', constructor: function(config) { config = Ext.apply({}, config); if (config.field) { config.field.monitorTab = false; ...
JavaScript
/** * @private */ Ext.define('Ext.grid.ViewDropZone', { extend: 'Ext.view.DropZone', indicatorHtml: '<div class="' + Ext.baseCSSPrefix + 'grid-drop-indicator-left"></div><div class="' + Ext.baseCSSPrefix + 'grid-drop-indicator-right"></div>', indicatorCls: Ext.baseCSSPrefix + 'grid-drop-indicator', ...
JavaScript
/** * This class is used to load content via Ajax into a {@link Ext.Component}. In general * this class will not be instanced directly, rather a loader configuration will be passed to the * constructor of the {@link Ext.Component}. * * ## HTML Renderer * * By default, the content loaded will be processed as raw...
JavaScript
/** * The FocusManager is responsible for globally: * * 1. Managing component focus * 2. Providing basic keyboard navigation * 3. (optional) Provide a visual cue for focused components, in the form of a focus ring/frame. * * To activate the FocusManager, simply call `Ext.FocusManager.enable();`. In turn, you may...
JavaScript
/** * A time picker which provides a list of times from which to choose. This is used by the Ext.form.field.Time * class to allow browsing and selection of valid times, but could also be used with other components. * * By default, all times starting at midnight and incrementing every 15 minutes will be presented. T...
JavaScript
/** * @private * A month picker component. This class is used by the {@link Ext.picker.Date Date picker} class * to allow browsing and selection of year/months combinations. */ Ext.define('Ext.picker.Month', { extend: 'Ext.Component', requires: [ 'Ext.XTemplate', 'Ext.util.ClickRepeater', ...
JavaScript
/** * A date picker. This class is used by the Ext.form.field.Date field to allow browsing and selection of valid * dates in a popup next to the field, but may also be used with other components. * * Typically you will need to implement a handler function to be notified when the user chooses a date from the picker;...
JavaScript
/** * Color picker provides a simple color palette for choosing colors. The picker can be rendered to any container. The * available default to a standard 40-color palette; this can be customized with the {@link #colors} config. * * Typically you will need to implement a handler function to be notified when the use...
JavaScript
/** * This class manages animation for a specific {@link #target}. The animation allows * animation of various properties on the target, such as size, position, color and others. * * ## Starting Conditions * * The starting conditions for the animation are provided by the {@link #from} configuration. * Any/all of...
JavaScript
/** * @class Ext.fx.Manager * Animation Manager which keeps track of all current animations and manages them on a frame by frame basis. * @private * @singleton */ Ext.define('Ext.fx.Manager', { /* Begin Definitions */ singleton: true, requires: ['Ext.util.MixedCollection', 'Ext.fx.ta...
JavaScript
//@define Ext.fx.Easing /** * @class Ext.fx.Easing * * This class contains a series of function definitions used to modify values during an animation. * They describe how the intermediate values used during a transition will be calculated. It allows for a transition to change * speed over its duration. The followi...
JavaScript
/** * @class Ext.fx.Queue * Animation Queue mixin to handle chaining and queueing by target. * @private */ Ext.define('Ext.fx.Queue', { requires: ['Ext.util.HashMap'], constructor: function() { this.targets = new Ext.util.HashMap(); this.fxQueue = {}; }, // @private getFxDefa...
JavaScript