code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * @author Ed Spencer * TabBar is used internally by a {@link Ext.tab.Panel TabPanel} and typically should not need to be created manually. * The tab bar automatically removes the default title provided by {@link Ext.panel.Header} */ Ext.define('Ext.tab.Bar', { extend: 'Ext.panel.Header', alias: 'widget....
JavaScript
/** * @author Ed Spencer, Tommy Maintz, Brian Moeskau * * A basic tab container. TabPanels can be used exactly like a standard {@link Ext.panel.Panel} for * layout purposes, but also have special support for containing child Components * (`{@link Ext.container.Container#cfg-items items}`) that are managed using a ...
JavaScript
/** * Controllers are the glue that binds an application together. All they really do is listen for events (usually from * views) and take some action. Here's how we might create a Controller to manage Users: * * Ext.define('MyApp.controller.Users', { * extend: 'Ext.app.Controller', * * init:...
JavaScript
/** * @class Ext.app.EventBus * @private */ Ext.define('Ext.app.EventBus', { requires: [ 'Ext.util.Event', 'Ext.Component' ], mixins: { observable: 'Ext.util.Observable' }, constructor: function() { this.mixins.observable.constructor.call(this); this.bus ...
JavaScript
/** * Represents an Ext JS 4 application, which is typically a single page app using a {@link Ext.container.Viewport Viewport}. * A typical Ext.app.Application might look like this: * * Ext.application({ * name: 'MyApp', * launch: function() { * Ext.create('Ext.container.Viewport'...
JavaScript
/** * The Editor class is used to provide inline editing for elements on the page. The editor * is backed by a {@link Ext.form.field.Field} that will be displayed to edit the underlying content. * The editor is a floating Component, when the editor is shown it is automatically aligned to * display over the top of t...
JavaScript
/** * A class that manages a group of {@link Ext.Component#floating} Components and provides z-order management, * and Component activation behavior, including masking below the active (topmost) Component. * * {@link Ext.Component#floating Floating} Components which are rendered directly into the document (such as ...
JavaScript
/** * Base class for any Ext.Component that may contain other Components. Containers handle the basic behavior of * containing items, namely adding, inserting and removing items. * * The most commonly used Container classes are Ext.panel.Panel, Ext.window.Window and * Ext.tab.Panel. If you do not need the capabili...
JavaScript
/** * */ Ext.define('Ext.container.DockingContainer', { /* Begin Definitions */ requires: ['Ext.util.MixedCollection', 'Ext.Element' ], /* End Definitions */ isDockingContainer: true, /** * @cfg {Object} defaultDockWeights * This object holds the default weights applied to dockedIte...
JavaScript
/** * An abstract base class which provides shared methods for Containers across the Sencha product line. * * Please refer to sub class's documentation * * @private */ Ext.define('Ext.container.AbstractContainer', { /* Begin Definitions */ extend: 'Ext.Component', requires: [ 'Ext.util.Mixe...
JavaScript
/** * A specialized container representing the viewable application area (the browser viewport). * * The Viewport renders itself to the document body, and automatically sizes itself to the size of * the browser viewport and manages window resizing. There may only be one Viewport created * in a page. * * Like any...
JavaScript
/** * Provides a container for arranging a group of related Buttons in a tabular manner. * * @example * Ext.create('Ext.panel.Panel', { * title: 'Panel with ButtonGroup', * width: 300, * height:200, * renderTo: document.body, * bodyPadding: 10, * html: '...
JavaScript
/** * An extended {@link Ext.Element} object that supports a shadow and shim, constrain to viewport and * automatic maintaining of shadow/shim positions. */ Ext.define('Ext.Layer', { extend: 'Ext.Element', uses: ['Ext.Shadow'], /** * @cfg {Boolean} [shim=true] * False to disable the iframe shi...
JavaScript
/** * @class Ext.view.AbstractView * This is an abstract superclass and should not be used directly. Please see {@link Ext.view.View}. * @private */ Ext.define('Ext.view.AbstractView', { extend: 'Ext.Component', requires: [ 'Ext.LoadMask', 'Ext.data.StoreManager', 'Ext.CompositeEleme...
JavaScript
/** * This class encapsulates the user interface for a tabular data set. * It acts as a centralized manager for controlling the various interface * elements of the view. This includes handling events, such as row and cell * level based DOM events. It also reacts to events from the underlying {@link Ext.selection.Mo...
JavaScript
/** * An internally used DataView for {@link Ext.form.field.ComboBox ComboBox}. */ Ext.define('Ext.view.BoundList', { extend: 'Ext.view.View', alias: 'widget.boundlist', alternateClassName: 'Ext.BoundList', requires: ['Ext.layout.component.BoundList', 'Ext.toolbar.Paging'], /** * @cfg {Numbe...
JavaScript
/** * Component layout for {@link Ext.view.Table} * @private * */ Ext.define('Ext.view.TableLayout', { extend: 'Ext.layout.component.Auto', alias: ['layout.tableview'], type: 'tableview', beginLayout: function(ownerContext) { var me = this; me.callParent(arguments); //...
JavaScript
/** * Produces optimized XTemplates for chunks of tables to be * used in grids, trees and other table based widgets. */ Ext.define('Ext.view.TableChunker', { singleton: true, requires: ['Ext.XTemplate'], metaTableTpl: [ '{%if (this.openTableWrap)out.push(this.openTableWrap())%}', '<table ...
JavaScript
/** * A mechanism for displaying data using custom layout templates and formatting. * * The View uses an {@link Ext.XTemplate} as its internal templating mechanism, and is bound to an * {@link Ext.data.Store} so that as the data in the store changes the view is automatically updated * to reflect the changes. The v...
JavaScript
/** * A specialized {@link Ext.util.KeyNav} implementation for navigating a {@link Ext.view.BoundList} using * the keyboard. The up, down, pageup, pagedown, home, and end keys move the active highlight * through the list. The enter key invokes the selection model's select action using the highlighted item. */ Ext.d...
JavaScript
/** * @private */ Ext.define('Ext.view.DropZone', { extend: 'Ext.dd.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', constr...
JavaScript
/** * @private */ Ext.define('Ext.view.DragZone', { extend: 'Ext.dd.DragZone', containerScroll: false, constructor: function(config) { var me = this, view, ownerCt, el; Ext.apply(me, config); // Create a ddGroup unless one has been configured....
JavaScript
/** * @class Ext.slider.Thumb * @private * Represents a single thumb element on a Slider. This would not usually be created manually and would instead * be created internally by an {@link Ext.slider.Multi Multi slider}. */ Ext.define('Ext.slider.Thumb', { requires: ['Ext.dd.DragTracker', 'Ext.util.Format'], ...
JavaScript
/** * Simple plugin for using an Ext.tip.Tip with a slider to show the slider value. In general this class is not created * directly, instead pass the {@link Ext.slider.Multi#useTips} and {@link Ext.slider.Multi#tipText} configuration * options to the slider directly. * * @example * Ext.create('Ext.slider...
JavaScript
/** * Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis clicking * and animation. Can be added as an item to any container. * * Sliders can be created with more than one thumb handle by passing an array of values instead of a single one: * * @example ...
JavaScript
/** * Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis clicking * and animation. Can be added as an item to any container. * * @example * Ext.create('Ext.slider.Single', { * width: 200, * value: 50, * increment: 10, * ...
JavaScript
/** * An Action is a piece of reusable functionality that can be abstracted out of any particular component so that it * can be usefully shared among multiple components. Actions let you share handlers, configuration options and UI * updates across any components that support the Action interface (primarily {@link ...
JavaScript
/** * Represents an HTML fragment template. Templates may be {@link #compile precompiled} for greater performance. * * An instance of this class may be created by passing to the constructor either a single argument, or multiple * arguments: * * # Single argument: String/Array * * The single argument may be eith...
JavaScript
/** * A specialized panel intended for use as an application window. Windows are floated, {@link #resizable}, and * {@link #cfg-draggable} by default. Windows can be {@link #maximizable maximized} to fill the viewport, restored to * their prior size, and can be {@link #method-minimize}d. * * Windows can also be li...
JavaScript
/** * Utility class for generating different styles of message boxes. The singleton instance, Ext.MessageBox * alias `Ext.Msg` can also be used. * * Note that a MessageBox is asynchronous. Unlike a regular JavaScript `alert` (which will halt * browser execution), showing a MessageBox will not cause the code to s...
JavaScript
/** * Simple class that can provide a shadow effect for any element. Note that the element * MUST be absolutely positioned, and the shadow does not provide any shimming. This * should be used only in simple cases - for more advanced functionality that can also * provide the same shadow effect, see the {@link Ext....
JavaScript
/** * @docauthor Robert Dougan <rob@sencha.com> * * Create simple buttons with this component. Customisations include {@link #iconAlign aligned} * {@link #iconCls icons}, {@link #cfg-menu dropdown menus}, {@link #tooltip tooltips} * and {@link #scale sizing options}. Specify a {@link #handler handler} to run code ...
JavaScript
/** * A specialized SplitButton that contains a menu of {@link Ext.menu.CheckItem} elements. The button automatically * cycles through each menu item on click, raising the button's {@link #change} event (or calling the button's * {@link #changeHandler} function, if supplied) for the active menu item. Clicking on the...
JavaScript
/** * A split button that provides a built-in dropdown arrow that can fire an event separately from the default click event * of the button. Typically this would be used to display a dropdown menu that provides additional options to the * primary button action, but any custom handler can provide the arrowclick imple...
JavaScript
/** * @author Nicolas Ferrero * * TablePanel is the basis of both {@link Ext.tree.Panel TreePanel} and {@link Ext.grid.Panel GridPanel}. * * TablePanel aggregates: * * - a Selection Model * - a View * - a Store * - Scrollers * - Ext.grid.header.Container */ Ext.define('Ext.panel.Table', { extend: '...
JavaScript
/** * This class is used to display small visual icons in the header of a panel. There are a set of * 25 icons that can be specified by using the {@link #type} config. The {@link #handler} config * can be used to provide a function that will respond to any click events. In general, this class * will not be instanti...
JavaScript
/** * A custom drag proxy implementation specific to {@link Ext.panel.Panel}s. This class * is primarily used internally for the Panel's drag drop implementation, and * should never need to be created directly. * @private */ Ext.define('Ext.panel.Proxy', { alternateClassName: 'Ext.dd.PanelProxy', /**...
JavaScript
/** * Simple header class which is used for on {@link Ext.panel.Panel} and {@link Ext.window.Window}. */ Ext.define('Ext.panel.Header', { extend: 'Ext.container.Container', uses: ['Ext.panel.Tool', 'Ext.draw.Component', 'Ext.util.CSS', 'Ext.layout.component.Body', 'Ext.Img'], alias: 'widget.header', ...
JavaScript
/** * @class Ext.panel.AbstractPanel * @private * * A base class which provides methods common to Panel classes across the Sencha product range. * * Please refer to sub class's documentation */ Ext.define('Ext.panel.AbstractPanel', { /* Begin Definitions */ extend: 'Ext.container.Container', mixin...
JavaScript
/** * Panel is a container that has specific functionality and structural components that make it the perfect building * block for application-oriented user interfaces. * * Panels are, by virtue of their inheritance from {@link Ext.container.Container}, capable of being configured with a * {@link Ext.container.Con...
JavaScript
/** * DD implementation for Panels. * @private */ Ext.define('Ext.panel.DD', { extend: 'Ext.dd.DragSource', requires: ['Ext.panel.Proxy'], constructor : function(panel, cfg){ var me = this; me.panel = panel; me.dragData = {panel: panel}; me.panelProxy = new Ext.p...
JavaScript
/** * This is the base class for {@link Ext.tip.QuickTip} and {@link Ext.tip.ToolTip} that provides the basic layout and * positioning that all tip-based classes require. This class can be used directly for simple, statically-positioned * tips that are displayed programmatically, or it can be extended to provide cus...
JavaScript
/** * A specialized tooltip class for tooltips that can be specified in markup and automatically managed * by the global {@link Ext.tip.QuickTipManager} instance. See the QuickTipManager documentation for * additional usage details and examples. */ Ext.define('Ext.tip.QuickTip', { extend: 'Ext.tip.ToolTip', ...
JavaScript
/** * ToolTip is a {@link Ext.tip.Tip} implementation that handles the common case of displaying a * tooltip when hovering over a certain element or elements on the page. It allows fine-grained * control over the tooltip's alignment relative to the target element or mouse, and the timing * of when it is automatical...
JavaScript
/** * Provides attractive and customizable tooltips for any element. The QuickTips * singleton is used to configure and manage tooltips globally for multiple elements * in a generic manner. To create individual tooltips with maximum customizability, * you should consider either {@link Ext.tip.Tip} or {@link Ext.ti...
JavaScript
//@tag extras,core //@require Accumulator.js /** * @class Ext.perf.Monitor * @singleton * @private */ Ext.define('Ext.perf.Monitor', { singleton: true, alternateClassName: 'Ext.Perf', requires: [ 'Ext.perf.Accumulator' ], constructor: function () { this.accumulators = []; ...
JavaScript
//@tag extras,core //@require ../util/TaskManager.js /** * @class Ext.perf.Accumulator * @private */ Ext.define('Ext.perf.Accumulator', (function () { var currentFrame = null, khrome = Ext.global['chrome'], formatTpl, // lazy init on first request for timestamp (avoids infobar in IE unti...
JavaScript
//@tag extras,core //@require ../lang/Error.js /** * Modified version of [Douglas Crockford's JSON.js][dc] that doesn't * mess with the Object prototype. * * [dc]: http://www.json.org/js.html * * @singleton */ Ext.JSON = (new(function() { var me = this, encodingFunction, decodingFunction, useNat...
JavaScript
//@tag extras,core //@require perf/Monitor.js //@define Ext.Supports /** * @class Ext.is * * Determines information about the current platform the application is running on. * * @singleton */ Ext.is = { init : function(navigator) { var platforms = this.platforms, ln = platforms.length, ...
JavaScript
//@tag foundation,core //@require Base.js /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.Class * * Handles class creation throughout the framework. This is a low level factory that is used by Ext.ClassManager and generally * should not be used directly. If...
JavaScript
//@tag foundation,core //@require Class.js /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.ClassManager * * Ext.ClassManager manages all classes and handles mapping from string class name to * actual class objects throughout the whole framework. It is not g...
JavaScript
//@tag foundation,core //@require ../lang/Date.js /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.Base * * The root of all classes created with {@link Ext#define}. * * Ext.Base is the building block of all Ext classes. All classes in Ext inherit from Ext.B...
JavaScript
//@tag foundation,core //@require ClassManager.js //@define Ext.Loader /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.Loader * * Ext.Loader is the heart of the new dynamic dependency loading capability in Ext JS 4+. It is most commonly used * via the {@lin...
JavaScript
//@tag dom,core //@require EventManager.js //@define Ext.EventObject /** * @class Ext.EventObject Just as {@link Ext.Element} wraps around a native DOM node, Ext.EventObject wraps the browser's native event-object normalizing cross-browser differences, such as which mouse button is clicked, keys pressed, mechanisms ...
JavaScript
//@tag foundation,core //@require String.js //@define Ext.Number /** * @class Ext.Number * * A collection of useful static methods to deal with numbers * @singleton */ Ext.Number = new function() { var me = this, isToFixedBroken = (0.9).toFixed() !== '1', math = Math; Ext.apply(this, { ...
JavaScript
//@tag foundation,core //@require Function.js /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.Object * * A collection of useful static methods to deal with objects. * * @singleton */ (function() { // The "constructor" for chain: var TemplateClass = func...
JavaScript
//@tag foundation,core //@require Number.js /** * @class Ext.Array * @singleton * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * * A set of useful static methods to deal with arrays; provide missing methods for older browsers. */ (function() { var arrayPrototype = Ar...
JavaScript
//@tag foundation,core //@require Array.js /** * @class Ext.Function * * A collection of useful static methods to deal with function callbacks * @singleton * @alternateClassName Ext.util.Functions */ Ext.Function = { /** * A very commonly used method throughout the framework. It acts as a wrapper aroun...
JavaScript
//@tag foundation,core //@require Object.js //@define Ext.Date /** * @class Ext.Date * A set of useful static methods to deal with date * Note that if Ext.Date is required and loaded, it will copy all methods / properties to * this object for convenience * * The date parsing and formatting syntax contains a subs...
JavaScript
//@tag foundation,core //@require ../class/Loader.js /** * @author Brian Moeskau <brian@sencha.com> * @docauthor Brian Moeskau <brian@sencha.com> * * A wrapper class for the native JavaScript Error object that adds a few useful capabilities for handling * errors in an Ext application. When you use Ext.Error to {@...
JavaScript
//@tag foundation,core //@require ../version/Version.js /** * @class Ext.String * * A collection of useful static methods to deal with strings * @singleton */ Ext.String = (function() { var trimRegex = /^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009...
JavaScript
//@tag extras,core //@require misc/JSON.js /** * @class Ext * * The Ext namespace (global object) encapsulates all classes, singletons, and * utility methods provided by Sencha's libraries. * * Most user interface Components are at a lower level of nesting in the namespace, * but many common utility functions a...
JavaScript
//@tag dom,core //@require Ext.dom.AbstractElement-position //@define Ext.dom.AbstractElement-style //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement */ (function(){ // local style camelizing for speed var Element = Ext.dom.AbstractElement, view = document.defaultView, ar...
JavaScript
//@tag dom,core /** * @class Ext.dom.CompositeElement * <p>This class encapsulates a <i>collection</i> of DOM elements, providing methods to filter * members, or to perform collective actions upon the whole set.</p> * <p>Although they are not listed, this class supports all of the methods of {@link Ext.dom.Element}...
JavaScript
//@tag dom,core //@require Ext.dom.AbstractElement-static //@define Ext.dom.AbstractElement-alignment /** * @class Ext.dom.AbstractElement */ Ext.dom.AbstractElement.override({ /** * Gets the x,y coordinates specified by the anchor position on the element. * @param {String} [anchor] The specified anch...
JavaScript
//@tag dom,core //@require AbstractElement.js //@define Ext.dom.AbstractElement-static //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement */ Ext.dom.AbstractElement.addInheritableStatics({ unitRe: /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i, camelRe: /(-[a-z])/gi, cssRe: /([a-z0-9\-]+)\s*:\...
JavaScript
//@tag dom,core //@require AbstractQuery.js /** * Abstract base class for {@link Ext.dom.Helper}. * @private */ Ext.define('Ext.dom.AbstractHelper', { emptyTags : /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i, confRe : /(?:tag|children|cn|html|tpl|tplData)$/i, endRe : /end/i, ...
JavaScript
//@tag dom,core //@require Ext.dom.AbstractElement-alignment //@define Ext.dom.AbstractElement-insertion //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement */ Ext.dom.AbstractElement.addMethods({ /** * Appends the passed element(s) to this element * @param {String/HTMLElement/Ext.do...
JavaScript
//@tag dom,core //@require Ext.dom.AbstractElement-insertion //@define Ext.dom.AbstractElement-position //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement */ (function(){ var Element = Ext.dom.AbstractElement; Element.override({ /** * Gets the current X position of the element based o...
JavaScript
//@tag dom,core //@require Ext.dom.AbstractElement-style //@define Ext.dom.AbstractElement-traversal //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement */ Ext.dom.AbstractElement.override({ /** * Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. ...
JavaScript
//@tag dom,core //@require ../EventObject.js /** * @class Ext.dom.AbstractQuery * @private */ Ext.define('Ext.dom.AbstractQuery', { /** * Selects a group of elements. * @param {String} selector The selector/xpath query (can be a comma separated list of selectors) * @param {HTMLElement/String} [ro...
JavaScript
//@tag dom,core //@require Ext.dom.Element-traversal /** * This class encapsulates a *collection* of DOM elements, providing methods to filter members, or to perform collective * actions upon the whole set. * * Although they are not listed, this class supports all of the methods of {@link Ext.dom.Element} and * {...
JavaScript
//@tag dom,core //@require AbstractHelper.js //@require Ext.Supports //@require Ext.EventManager //@define Ext.dom.AbstractElement /** * @class Ext.dom.AbstractElement * @extend Ext.Base * @private */ (function() { var document = window.document, trimRe = /^\s+|\s+$/g, whitespaceRe = /\s/; if (!Ext.cache...
JavaScript
//@tag dom,core //@require util/Event.js //@define Ext.EventManager /** * @class Ext.EventManager * Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides * several useful events directly. * See {@link Ext.EventObject} for more details on normalize...
JavaScript
//@tag foundation,core /** * @class Ext * @singleton */ var Ext = Ext || {}; Ext._startTime = new Date().getTime(); (function() { var global = this, objectPrototype = Object.prototype, toString = objectPrototype.toString, enumerables = true, enumerablesTest = { toString: 1 }, ...
JavaScript
//@tag foundation,core //@require ../Ext.js /** * @author Jacky Nguyen <jacky@sencha.com> * @docauthor Jacky Nguyen <jacky@sencha.com> * @class Ext.Version * * A utility class that wrap around a string version number and provide convenient * method to perform comparison. See also: {@link Ext.Version#compare comp...
JavaScript
//@tag extras,core //@require Format.js //@define Ext.util.TaskManager //@define Ext.TaskManager /** * Provides the ability to execute one or more arbitrary tasks in a asynchronous manner. * Generally, you can use the singleton {@link Ext.TaskManager} instead, but if needed, * you can create separate instances of T...
JavaScript
//@tag extras,core //@require ../Ext-more.js //@define Ext.util.Format /** * @class Ext.util.Format * * This class is a centralized place for formatting functions. It includes * functions to format various different types of data, such as text, dates and numeric values. * * ## Localization * * This class c...
JavaScript
//@tag dom,core //@require ../Support.js //@define Ext.util.DelayedTask /** * @class Ext.util.DelayedTask * * The DelayedTask class provides a convenient way to "buffer" the execution of a method, * performing setTimeout where a new timeout cancels the old timeout. When called, the * task will wait the specified...
JavaScript
//@tag dom,core //@define Ext.util.Event //@require Ext.util.DelayedTask Ext.require('Ext.util.DelayedTask', function() { /** * Represents single event type that an Observable object listens to. * All actual listeners are tracked inside here. When the event fires, * it calls all the registered lis...
JavaScript
/** * @class Ext.Ajax * @singleton * @markdown A singleton instance of an {@link Ext.data.Connection}. This class is used to communicate with your server side code. It can be used as follows: Ext.Ajax.request({ url: 'page.php', params: { id: 1 }, success: function(re...
JavaScript
/** * Simple helper class for easily creating image components. This renders an image tag to * the DOM with the configured src. * * {@img Ext.Img/Ext.Img.png Ext.Img component} * * ## Example usage: * * var changingImage = Ext.create('Ext.Img', { * src: 'http://www.sencha.com/img/20110215-feat-html...
JavaScript
/** * Private utility class that manages the internal Shadow cache. * @private */ Ext.define('Ext.ShadowPool', { singleton: true, requires: ['Ext.DomHelper'], markup: (function() { return Ext.String.format( '<div class="{0}{1}-shadow" role="presentation"></div>', Ext.base...
JavaScript
//@tag dom,core //@require Ext.dom.Element-anim //@define Ext.dom.Element-dd //@define Ext.dom.Element /** * @class Ext.dom.Element */ Ext.dom.Element.override({ /** * Initializes a {@link Ext.dd.DD} drag drop object for this element. * @param {String} group The group the DD object is member of * ...
JavaScript
//@tag dom,core //@require Helper.js //@define Ext.dom.Query //@define Ext.core.Query //@define Ext.DomQuery /* * This is code is also distributed under MIT license for use * with jQuery and prototype JavaScript libraries. */ /** * @class Ext.dom.Query * @alternateClassName Ext.DomQuery * @alternateClassName Ext...
JavaScript
//@tag dom,core //@define Ext.DomHelper //@define Ext.core.DomHelper //@require Ext.dom.AbstractElement-traversal /** * @class Ext.DomHelper * @extends Ext.dom.Helper * @alternateClassName Ext.core.DomHelper * @singleton * * The DomHelper class provides a layer of abstraction from DOM and transparently supports ...
JavaScript
//@tag dom,core //@require Ext.dom.Element-fx //@define Ext.dom.Element-position //@define Ext.dom.Element /** * @class Ext.dom.Element */ (function() { var Element = Ext.dom.Element, LEFT = "left", RIGHT = "right", TOP = "top", BOTTOM = "bottom", POSITION = "position", STATIC = "static", ...
JavaScript
//@tag dom,core //@require Ext.dom.Element-style //@define Ext.dom.Element-traversal //@define Ext.dom.Element /** * @class Ext.dom.Element */ Ext.dom.Element.override({ select: function(selector) { return Ext.dom.Element.select(selector, false, this.dom); } });
JavaScript
//@tag dom,core //@require Ext.dom.Element-dd //@define Ext.dom.Element-fx //@define Ext.dom.Element /** * @class Ext.dom.Element */ (function() { var Element = Ext.dom.Element, VISIBILITY = "visibility", DISPLAY = "display", NONE = "none", HIDDEN = 'hidden',...
JavaScript
//@tag dom,core //@require Ext.dom.Element-scroll //@define Ext.dom.Element-style //@define Ext.dom.Element /** * @class Ext.dom.Element */ (function() { var Element = Ext.dom.Element, view = document.defaultView, adjustDirect2DTableRe = /table-row|table-.*-group/, INTERNAL = '_internal', HIDDEN = '...
JavaScript
//@tag dom,core //@require Element.js //@define Ext.dom.Element-alignment //@define Ext.dom.Element /** * @class Ext.dom.Element */ Ext.dom.Element.override((function() { var doc = document, win = window, alignRe = /^([a-z]+)-([a-z]+)(\?)?$/, round = Math.round; return { /*...
JavaScript
//@tag dom,core //@require Query.js //@define Ext.dom.Element //@require Ext.dom.AbstractElement /** * @class Ext.dom.Element * @alternateClassName Ext.Element * @alternateClassName Ext.core.Element * @extend Ext.dom.AbstractElement * * Encapsulates a DOM element, adding simple DOM manipulation facilities, norma...
JavaScript
//@tag dom,core //@require Ext.dom.Element-position //@define Ext.dom.Element-scroll //@define Ext.dom.Element /** * @class Ext.dom.Element */ Ext.dom.Element.override({ /** * Returns true if this element is scrollable. * @return {Boolean} */ isScrollable: function() { var dom = this.d...
JavaScript
//@tag dom,core //@require Ext.dom.Element-alignment //@define Ext.dom.Element-anim //@define Ext.dom.Element /** * @class Ext.dom.Element */ /* ================================ * A Note About Wrapped Animations * ================================ * A few of the effects below implement two different animations per...
JavaScript
/** * Provides indentation and folder structure markup for a Tree taking into account * depth and position within the tree hierarchy. * * @private */ Ext.define('Ext.tree.Column', { extend: 'Ext.grid.column.Column', alias: 'widget.treecolumn', tdCls: Ext.baseCSSPrefix + 'grid-cell-treecolumn', ...
JavaScript
/** * Used as a view by {@link Ext.tree.Panel TreePanel}. */ Ext.define('Ext.tree.View', { extend: 'Ext.view.Table', alias: 'widget.treeview', requires: [ 'Ext.data.NodeStore' ], loadingCls: Ext.baseCSSPrefix + 'grid-tree-loading', expandedCls: Ext.baseCSSPrefix + 'grid-tree-node-exp...
JavaScript
/** * This plugin provides drag and/or drop functionality for a TreeView. * * It creates a specialized instance of {@link Ext.dd.DragZone DragZone} which knows how to drag out of a * {@link Ext.tree.View TreeView} and loads the data object which is passed to a cooperating * {@link Ext.dd.DragZone DragZone}'s metho...
JavaScript
/** * The TreePanel provides tree-structured UI representation of tree-structured data. * A TreePanel must be bound to a {@link Ext.data.TreeStore}. TreePanel's support * multiple columns through the {@link #columns} configuration. * * Simple TreePanel using inline data: * * @example * var store = Ext.c...
JavaScript
/** * @private */ Ext.define('Ext.tree.ViewDragZone', { extend: 'Ext.view.DragZone', isPreventDrag: function(e, record) { return (record.get('allowDrag') === false) || !!e.getTarget(this.view.expanderSelector); }, afterRepair: function() { var me = this, view = me.vie...
JavaScript
/** * @private */ Ext.define('Ext.tree.ViewDropZone', { extend: 'Ext.view.DropZone', /** * @cfg {Boolean} allowParentInsert * Allow inserting a dragged node between an expanded parent node and its first child that will become a * sibling of the parent when dropped. */ allowParentInser...
JavaScript