code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* @class Ext.AbstractStoreSelectionModel
* @extends Ext.util.Observable
*
* Tracks what records are currently selected in a databound widget.
*
* This is an abstract class and is not meant to be directly used.
*
* DataBound UI widgets such as GridPanel, TreePanel, and ListView
* should subclass AbstractSto... | JavaScript |
Ext.DataViewSelectionModel = Ext.extend(Ext.AbstractStoreSelectionModel, {
deselectOnContainerClick: true,
bindComponent: function(view) {
this.view = view;
this.bind(view.getStore());
var eventListeners = {
refresh: this.refresh,
scope: this,
el: {
... | JavaScript |
/**
* @class Ext.DataView
* @extends Ext.Component
* A mechanism for displaying data using custom layout templates and formatting. DataView 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 automati... | JavaScript |
/**
* @class Ext.ComponentMgr
* <p>Provides a registry of all Components (instances of {@link Ext.Component} or any subclass
* thereof) on a page so that they can be easily accessed by {@link Ext.Component component}
* {@link Ext.Component#id id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ext.ge... | JavaScript |
/**
* @class Array
*/
Ext.applyIf(Array.prototype, {
/**
* Checks whether or not the specified object exists in the array.
* @param {Object} o The object to check for
* @param {Number} from (Optional) The index at which to begin the search
* @return {Number} The index of o in the array (or -1 ... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.Application
* @extends Ext.util.Observable
*
* <p>Represents a Sencha Application. Most Applications consist of at least the application's name and a launch
* function:</p>
*
<pre><code>
new Ext.Application({
name: 'MyApp',
launch: function() {
this.viewpo... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.Interaction
* @extends Ext.util.Observable
* @ignore
*
* <p>Represents a single interaction performed by a controller/action pair</p>
* @constructor
* @param {Object} config Options object containing at least a controller/action pair
*/
Ext.Interaction = Ext.extend(Ext.ut... | JavaScript |
/**
* @class Ext.ApplicationManager
* @extends Ext.AbstractManager
* @singleton
* @ignore
*/
Ext.ApplicationManager = new Ext.AbstractManager({
register: function(name, options) {
if (Ext.isObject(name)) {
options = name;
} else {
options.name = name;
}
... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.ControllerManager
* @extends Ext.AbstractManager
* @singleton
*
* <p>Keeps track of all of the registered controllers. This should very rarely need to be used by developers. This
* is simply an {@link Ext.AbstractManager AbstractManager} with a custom {@link #register} fun... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.Controller
* @extends Ext.util.Observable
*
* @constructor
*/
Ext.Controller = Ext.extend(Ext.util.Observable, {
constructor: function(config) {
this.addEvents(
/**
* @event instance-created
* Fired when a new model instance ... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.util.Route
* @extends Object
* @ignore
* <p>Represents a mapping between a url and a controller/action pair. May also contain additional params</p>
*/
Ext.util.Route = Ext.extend(Object, {
/**
* @cfg {String} url The url string to match. Required.
*/
co... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.util.Router
* @extends Ext.util.Observable
* @ignore
*/
Ext.util.Router = Ext.extend(Ext.util.Observable, {
constructor: function(config) {
config = config || {};
Ext.apply(this, config, {
defaults: {
action: 'index'
... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.util.Dispatcher
* @extends Ext.util.Observable
* @ignore
*
* @constructor
*/
Ext.util.Dispatcher = Ext.extend(Ext.util.Observable, {
constructor: function(config) {
this.addEvents(
/**
* @event before-dispatch
* Fires b... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
* @param {String} selector The simple selector to test
* @param {Number/Mixed} maxDepth (optional) The max depth... | JavaScript |
Ext.applyIf(Ext.Element, {
unitRe: /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,
camelRe: /(-[a-z])/gi,
opacityRe: /alpha\(opacity=(.*)\)/i,
propertyCache: {},
defaultUnit : "px",
borders: {l: 'border-left-width', r: 'border-right-width', t: 'border-top-width', b: 'border-bottom-width'},
paddings: ... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Appends the passed element(s) to this element
* @param {String/HTMLElement/Array/Element/CompositeElement} el
* @return {Ext.Element} this
*/
appendChild : function(el) {
return Ext.get(el).appendTo(this);
},
/**
... | JavaScript |
/**
* @class Ext.lib.Container
* @extends Ext.Component
* Shared Container class
*/
Ext.lib.Container = Ext.extend(Ext.Component, {
/**
* @cfg {String/Object} layout
* <p><b>*Important</b>: In order for child items to be correctly sized and
* positioned, typically a layout manager <b>must</b> be ... | JavaScript |
/**
* @class Ext.util.Droppable
* @extends Ext.util.Observable
*
* @constructor
*/
Ext.util.Droppable = Ext.extend(Ext.util.Observable, {
baseCls: 'x-droppable',
/**
* @cfg {String} activeCls
* The CSS added to a Droppable when a Draggable in the same group is being
* dragged. Defaults to '... | JavaScript |
/**
* @class Date
*
* The date parsing and formatting syntax contains a subset of
* <a href="http://www.php.net/date">PHP's date() function</a>, and the formats that are
* supported will provide results equivalent to their PHP versions.
*
* The following is a list of all currently supported formats:
* <pre>
For... | JavaScript |
/**
* @class Ext.util.Sortable
* @extends Ext.util.Observable
* @constructor
* @param {Mixed} el
* @param {Object} config
*/
Ext.util.Sortable = Ext.extend(Ext.util.Observable, {
baseCls: 'x-sortable',
/**
* @cfg {String} direction
* Possible values: 'vertical', 'horizontal'
* Defaults to ... | JavaScript |
/**
* @class Ext.util.TapRepeater
* @extends Ext.util.Observable
*
* A wrapper class which can be applied to any element. Fires a "tap" event while
* touching the device. The interval between firings may be specified in the config but
* defaults to 20 milliseconds.
*
* @constructor
* @param {Mixed} el The elem... | JavaScript |
/**
* @class Ext.util.Draggable
* @extends Ext.util.Observable
* @constructor
* @param {Mixed} el The element you want to make draggable.
* @param {Object} config The configuration object for this Draggable.
*/
Ext.util.Draggable = Ext.extend(Ext.util.Observable, {
baseCls: 'x-draggable',
draggingCls: 'x-... | JavaScript |
/**
* @class Ext.util.JSONP
*
* Provides functionality to make cross-domain requests with JSONP (JSON with Padding).
* http://en.wikipedia.org/wiki/JSON#JSONP
* <p>
* <b>Note that if you are retrieving data from a page that is in a domain that is NOT the same as the originating domain
* of the running page, you ... | JavaScript |
/*
http://www.JSON.org/json2.js
2010-03-20
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE... | JavaScript |
(function(){
Ext.ScrollManager = new Ext.AbstractManager();
/**
* @class Ext.util.ScrollView
* @extends Ext.util.Observable
*
* A wrapper class that listens to scroll events and control the scroll indicators
*/
Ext.util.ScrollView = Ext.extend(Ext.util.Observable, {
useIndicators: true,
indicatorConfig... | JavaScript |
/**
* @class Ext.MessageBox
* @extends Ext.Sheet
*
* <p>Utility class for generating different styles of message boxes. The framework provides a global singleton {@link Ext.Msg} for common usage.<p/>
* <p>Note that the MessageBox is asynchronous. Unlike a regular JavaScript <code>alert</code> (which will halt
*... | JavaScript |
/**
* @class Ext.Panel
* @extends Ext.lib.Panel
* <p>Panel is a container that has specific functionality and structural components that make
* it the perfect building block for application-oriented user interfaces.</p>
* <p>Panels are, by virtue of their inheritance from {@link Ext.Container}, capable
* of being... | JavaScript |
/**
* @class Ext.Component
* @extends Ext.lib.Component
* <p>Base class for all Ext components. All subclasses of Component may participate in the automated
* Ext component lifecycle of creation, rendering and destruction which is provided by the {@link Ext.Container Container} class.
* Components may be added to... | JavaScript |
/**
* @class Ext.TabBar
* @extends Ext.Panel
*
* <p>Used in the {@link Ext.TabPanel} component to display {@link Ext.Tab} components.</p>
*
* <h2>Screenshot:</h2>
* <p><img src="doc_resources/Ext.TabBar/screenshot.png" /></p>
*
* <h2>Example code:</h2>
<pre><code>
var bar = new Ext.TabBar({
dock : 'top'... | JavaScript |
/**
* @class Ext.Carousel
* @extends Ext.Panel
*
* <p>A customized Panel which provides the ability to slide back and forth between
* different child items.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui} (defines the style of the carousel)</li>
* <li>{@link #direction} (defines ... | JavaScript |
/**
* @class Ext.Tab
* @extends Ext.Button
*
* <p>Used in the {@link Ext.TabBar} component. This shouldn't be used directly, instead use {@link Ext.TabBar} or {@link Ext.TabPanel}.</p>
*
* @xtype tab
*/
Ext.Tab = Ext.extend(Ext.Button, {
isTab: true,
baseCls: 'x-tab',
/**
* @cfg {String} pres... | JavaScript |
/**
* @class Ext.Sheet
* @extends Ext.Panel
*
* <p>A general sheet class. This renderable container provides base support for orientation-aware
* transitions for popup or side-anchored sliding Panels.</p>
*
* <h2>Screenshot:</h2>
* <p><img src="doc_resources/Ext.Sheet/screenshot.png" /></p>
*
* <h2>Example ... | JavaScript |
/**
* @class Ext.form.Select
* @extends Ext.form.Field
* Simple Select field wrapper. Example usage:
<pre><code>
new Ext.form.Select({
options: [
{text: 'First Option', value: 'first'},
{text: 'Second Option', value: 'second'},
{text: 'Third Option', value: 'third'}
]
});
</code></p... | JavaScript |
/**
* @class Ext.form.Toggle
* @extends Ext.form.Slider
* <p>Specialized Slider with a single thumb and only two values. By default the toggle component can
* be switched between the values of 0 and 1.</p>
* @xtype togglefield
*/
Ext.form.Toggle = Ext.extend(Ext.form.Slider, {
minValue: 0,
maxValue: 1,
... | JavaScript |
/**
* @class Ext.form.Number
* @extends Ext.form.Field
* <p>Wraps an HTML5 number field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype numberfield
*/
Ext.form.Number = Ext.extend(Ext.form.Text, {
ui: 'number',
inputType: Ext.is.Android ? 'text' : 'number',
minValue : un... | JavaScript |
/**
* @class Ext.form.Password
* @extends Ext.form.Field
* <p>Wraps an HTML5 password field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype passwordfield
*/
Ext.form.Password = Ext.extend(Ext.form.Text, {
inputType: 'password',
autoCapitalize : false
});
Ext.reg('passwordfield', ... | JavaScript |
/**
* @class Ext.form.Radio
* @extends Ext.form.Checkbox
* <p>Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type.
* Radio grouping is handled automatically by the browser if you give each radio in a group the same name.</p>
* @constructor
* Creates a new ... | JavaScript |
/**
* @class Ext.form.Search
* @extends Ext.form.Field
* Wraps an HTML5 search field. See {@link Ext.form.FormPanel FormPanel} for example usage.
* @xtype searchfield
*/
Ext.form.Search = Ext.extend(Ext.form.Text, {
inputType: Ext.is.Android ? 'text' : 'search'
/**
* @cfg {Boolean} useClearIcon @hide
... | JavaScript |
/**
* @class Ext.form.FieldSet
* @extends Ext.Container
* <p>Simple FieldSet, can contain fields as items. FieldSets do not add any behavior, other than an optional title, and
* are just used to group similar fields together. Example usage (within a form):</p>
<pre><code>
new Ext.form.FormPanel({
items: [
... | JavaScript |
/**
* @class Ext.form.TextArea
* @extends Ext.form.Field
* <p>Wraps a textarea. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype textareafield
*/
Ext.form.TextArea = Ext.extend(Ext.form.Text, {
ui: 'textarea',
/**
* @cfg {Integer} maxRows The maximum number of lines made visib... | JavaScript |
/**
* @class Ext.form.Email
* @extends Ext.form.Text
* <p>Wraps an HTML5 email field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype emailfield
*/
Ext.form.Email = Ext.extend(Ext.form.Text, {
inputType: Ext.is.Android ? 'text' : 'email',
autoCapitalize: false
});
Ext.reg('em... | JavaScript |
/**
* @class Ext.form.Url
* @extends Ext.form.Text
* Wraps an HTML5 url field. See {@link Ext.form.FormPanel FormPanel} for example usage.
* @xtype urlfield
*/
Ext.form.Url = Ext.extend(Ext.form.Text, {
inputType: Ext.is.Android ? 'text' : 'url',
autoCapitalize: false
});
Ext.reg('urlfield', Ext.form... | JavaScript |
/**
* @class Ext.form.Slider
* @extends Ext.form.Field
* <p>Form component allowing a user to move a 'thumb' along a slider axis to choose a value. Sliders can equally be used outside
* of the context of a form. Example usage:</p>
<pre><code>
new Ext.form.FormPanel({
items: [
{
xtype : ... | JavaScript |
/**
* @class Ext.form.FormPanel
* @extends Ext.Panel
* <p>Simple form panel which enables easy getting and setting of field values. Can load model instances. Example usage:</p>
<pre><code>
var form = new Ext.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
... | JavaScript |
/**
* @class Ext.form.Field
* @extends Ext.Container
* <p>Base class for form fields that provides default event handling, sizing, value handling and other functionality. Ext.form.Field
* is not used directly in applications, instead the subclasses such as {@link Ext.form.Text} should be used.</p>
* @constructor
... | JavaScript |
/**
* @class Ext.form.Hidden
* @extends Ext.form.Field
* <p>Wraps a hidden field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype hiddenfield
*/
Ext.form.Hidden = Ext.extend(Ext.form.Field, {
ui: 'hidden',
inputType: 'hidden',
tabIndex: -1
});
Ext.reg('hiddenfield', Ext.... | JavaScript |
/**
* @class Ext.form.Checkbox
* @extends Ext.form.Field
* Simple Checkbox class. Can be used as a direct replacement for traditional checkbox fields.
* @constructor
* @param {Object} config Optional config object
* @xtype checkboxfield
*/
Ext.form.Checkbox = Ext.extend(Ext.form.Field, {
ui: 'checkbox',
... | JavaScript |
/**
* @class Ext.form.Spinner
* @extends Ext.form.Field
* <p>Wraps an HTML5 number field. Example usage:
* <pre><code>
new Ext.form.Spinner({
minValue: 0,
maxValue: 100,
incrementValue: 2,
cycle: true
});
</code></pre>
* @xtype spinnerfield
*/
Ext.form.Spinner = Ext.extend(Ext.form.Number, {
... | JavaScript |
/**
* @class Ext.form.DatePicker
* @extends Ext.form.Field
* <p>Specialized field which has a button which when pressed, shows a {@link Ext.DatePicker}.</p>
* @xtype datepickerfield
*/
Ext.form.DatePicker = Ext.extend(Ext.form.Field, {
ui: 'select',
/**
* @cfg {Object/Ext.DatePicker} picker
... | JavaScript |
/**
* @class Ext.form.Text
* @extends Ext.form.Field
* <p>Simple text input field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype textfield
*/
Ext.form.Text = Ext.extend(Ext.form.Field, {
ui: 'text',
/**
* @cfg {String} focusCls The CSS class to use when the field receives f... | JavaScript |
/**
* @class Ext.Media
* @extends Ext.Container
*
* <p>Provides a base class for audio/visual controls. Should not be used directly.</p>
* @xtype media
*/
Ext.Media = Ext.extend(Ext.Container, {
/**
* @constructor
* @param {Object} config
* Create a new Media component.
*/
/**
* ... | JavaScript |
/**
* @class Ext.SegmentedButton
* @extends Ext.Container
* <p>SegmentedButton is a container for a group of {@link Ext.Button}s. Generally a SegmentedButton would be
* a child of a {@link Ext.Toolbar} and would be used to switch between different views.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
... | JavaScript |
/**
* @class Ext.List
* @extends Ext.DataView
* <p>A mechanism for displaying data using a list layout template. List 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 refl... | JavaScript |
/**
* @class Ext.Audio
* @extends Ext.Media
*
* <p>Provides a simple container for HTML5 Audio.</p>
* <p><i>Recommended types: Uncompressed WAV and AIF audio, MP3 audio, and AAC-LC or HE-AAC audio</i></p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #url}</li>
* <li>{@link #autoPause}<... | JavaScript |
/**
* @class Ext.TabPanel
* @extends Ext.Panel
*
* TabPanel is a Container which can hold other components to be accessed in a tabbed
* interface. It uses a {@link Ext.TabBar} to display a {@link Ext.Tab} for each item defined.
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui}</li>
* <l... | JavaScript |
/**
* @class Ext.Toolbar
* @extends Ext.Container
*
* <p>Toolbars are most commonly used as dockedItems within an Ext.Panel. They can
* be docked at the 'top' or 'bottom' of a Panel by specifying the dock config.</p>
*
* <p>The {@link #defaultType} of Toolbar's is '{@link Ext.Button button}'.</p>
*
* <h2>Scre... | JavaScript |
/**
* @class Ext.Picker
* @extends Ext.Sheet
*
* <p>A general picker class. Slots are used to organize multiple scrollable slots into a single picker. {@link #slots} is
* the only necessary property</p>
*
* <h2>Example usage:</h2>
* <pre><code>
var picker = new Ext.Picker({
slots: [
{
... | JavaScript |
/**
* @class Ext.Video
* @extends Ext.Media
*
* <p>Provides a simple Container for HTML5 Video.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #url}</li>
* <li>{@link #autoPause}</li>
* <li>{@link #autoResume}</li>
* </ul>
*
* <h2>Useful Methods</h2>
* <ul class="list">
* <l... | JavaScript |
/**
* @class Ext.NestedList
* @extends Ext.Panel
*
* <p>NestedList provides a miller column interface to navigate between nested sets
* and provide a clean interface with limited screen real-estate.</p>
*
* <pre><code>
// store with data
var data = {
text: 'Groceries',
items: [{
text: 'Drinks',
... | JavaScript |
/**
* @class Ext.Button
* @extends Ext.Component
*
* <p>A simple class to display different styles of buttons.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui} (defines the style of the button)</li>
* </ul>
*
* <h2>Useful Methods</h2>
* <ul class="list">
* <li>{@link #handler} ... | JavaScript |
/**
* @class Ext.DataView
* @extends Ext.Component
* A mechanism for displaying data using custom layout templates and formatting. DataView 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 automati... | JavaScript |
/**
* @class Ext.Container
* @extends Ext.lib.Container
* <p>Base class for any {@link Ext.BoxComponent} that may contain other Components. Containers handle the
* basic behavior of containing items, namely adding, inserting and removing items.</p>
*
* <p><u><b>Layout</b></u></p>
* <p>Container classes delegate ... | JavaScript |
/**
* @class Ext.IndexBar
* @extends Ext.DataPanel
* <p>IndexBar is a component used to display a list of data (primarily an {@link #alphabet}) which can then be used to quickly
* navigate through a list (see {@link Ext.List}) of data. When a user taps on an item in the {@link Ext.IndexBar}, it will fire
* the <tt... | JavaScript |
/**
* @class Ext.DatePicker
* @extends Ext.Picker
*
* <p>A date picker component which shows a DatePicker on the screen. This class extends from {@link Ext.Picker} and {@link Ext.Sheet} so it is a popup.</p>
* <p>This component has no required properties.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
... | JavaScript |
/**
* @class Ext.Map
* @extends Ext.Component
*
* <p>Wraps a Google Map in an Ext.Component.<br/>
* http://code.google.com/apis/maps/documentation/v3/introduction.html</p>
*
* <p>To use this component you must include an additional JavaScript file from
* Google:</p>
* <pre><code><script type="text/javascrip... | JavaScript |
/**
* @class Ext.Element
* * 表示着DOM里面的一个元素。Represents an Element in the DOM.<br><br>
* 用法:Usage:<br>
* <p>Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.</p>
* <p>All instances of this class inherit the methods of {@link Ext.Fx} making visual effects eas... | JavaScript |
/**
* @class Ext.DomHelper
* <p>The DomHelper class provides a layer of abstraction from DOM and transparently supports creating
* elements via DOM or using HTML fragments. It also has the ability to create HTML fragment templates
* from your DOM building code.</p>
*
* <p><b><u>DomHelper element specification obj... | JavaScript |
/**
* @class Ext
*/
Ext.apply(Ext, {
/**
* The version of the framework
* @type String
*/
version : '1.0.0RC',
versionDetail : {
major : 1,
minor : 0,
patch : '0RC'
},
/**
* Sets up a page for use on a mobile device.
* @param {Object} config
... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the Scroller instance of the first parent that has one.
* @return {Ext.util.Scroller/null} The first parent scroller
*/
getScrollParent : function() {
var parent = this.dom, scroller;
while (parent && parent != docu... | JavaScript |
Ext.applyIf(Ext.Element, {
/**
* Returns the calculated CSS 2D transform offset values (translate x and y)
* @param {Ext.Element/Element} el the element
* @return {Ext.util.Offset} instance of Ext.util.Offset, with x and y properties
*/
getComputedTransformOffset: function(el) {
... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
* @return {Number} The Y position of the element
*... | JavaScript |
/**
* @class Ext.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>
*
* Example:<pre><code>
var els = Ext.select("#some-el div.some-class");
// or select directly from an existing element... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the x,y coordinates specified by the anchor position on the element.
* @param {String} anchor (optional) The specified anchor position (defaults to "c"). See {@link #alignTo}
* for details on supported anchor positions.
* @param ... | JavaScript |
/**
* @class Ext.History
* @extends Ext.util.Observable
* @ignore
* @private
*
* Mobile-optimized port of Ext.History. Note - iPad on iOS < 4.2 does not have HTML5 History support so we still
* have to poll for changes.
*/
Ext.History = new Ext.util.Observable({
constructor: function() {
Ext.Histor... | JavaScript |
(function() {
/**
* @class Ext.Element
*/
Ext.Element.classReCache = {};
var El = Ext.Element,
view = document.defaultView;
El.addMethods({
marginRightRe: /marginRight/i,
trimRe: /^\s+|\s+$/g,
spacesRe: /\s+/,
/**
* Adds one or more CSS classe... | JavaScript |
/**
* @class Ext.anims
*/
Ext.apply(Ext.anims, {
/**
* Flip Animation
*/
flip: new Ext.Anim({
is3d: true,
direction: 'left',
before: function(el) {
var rotateProp = 'Y',
fromScale = 1,
toScale = 1,
fromRotate = 0,
... | JavaScript |
/**
* @class Ext.Anim
* @extends Object
* <p>Ext.Anim is used to excute animations defined in {@link Ext.anims}. The {@link #run} method can take any of the
* properties defined below.</p>
*
* <h2>Example usage:</h2>
* <code><pre>
Ext.Anim.run(this, 'fade', {
out: false,
autoClear: true
});
* </pre></... | JavaScript |
Ext.gesture.Drag = Ext.extend(Ext.gesture.Touch, {
handles: ['dragstart', 'drag', 'dragend'],
dragThreshold: 5,
direction: 'both',
horizontal: false,
vertical: false,
constructor: function() {
Ext.gesture.Drag.superclass.constructor.apply(this, arguments);
if (this.direction... | JavaScript |
Ext.gesture.Touch = Ext.extend(Ext.gesture.Gesture, {
handles: ['touchstart', 'touchmove', 'touchend', 'touchdown'],
touchDownInterval: 500,
onTouchStart: function(e, touch) {
this.startX = this.previousX = touch.pageX;
this.startY = this.previousY = touch.pageY;
this.start... | JavaScript |
Ext.gesture.Swipe = Ext.extend(Ext.gesture.Gesture, {
listenForEnd: false,
swipeThreshold: 35,
swipeTime: 1000,
onTouchStart : function(e, touch) {
this.startTime = e.timeStamp;
this.startX = touch.pageX;
this.startY = touch.pageY;
this.lock('scroll', 'scroll... | JavaScript |
Ext.gesture.Tap = Ext.extend(Ext.gesture.Gesture, {
handles: [
'tapstart',
'tapcancel',
'tap',
'doubletap',
'taphold',
'singletap'
],
cancelThreshold: 10,
doubleTapThreshold: 800,
singleTapThreshold: 400,
holdThreshold: 1000,
fir... | JavaScript |
Ext.gesture.Pinch = Ext.extend(Ext.gesture.Gesture, {
handles: [
'pinchstart',
'pinch',
'pinchend'
],
touches: 2,
onTouchStart : function(e) {
var me = this;
if (Ext.supports.Touch && e.targetTouches.length >= 2) {
me.lock('swipe', '... | JavaScript |
Ext.TouchEventObjectImpl = Ext.extend(Object, {
constructor : function(e, args) {
if (e) {
this.setEvent(e, args);
}
},
setEvent : function(e, args) {
Ext.apply(this, {
event: e,
time: e.timeStamp
});
this.touches = e.touches || [... | JavaScript |
Ext.gesture.Gesture = Ext.extend(Object, {
listenForStart: true,
listenForEnd: true,
listenForMove: true,
disableLocking: false,
touches: 1,
constructor: function(config) {
config = config || {};
Ext.apply(this, config);
this.target = Ext.getDo... | JavaScript |
Ext.gesture.Manager = new Ext.AbstractManager({
startEvent: 'touchstart',
moveEvent: 'touchmove',
endEvent: 'touchend',
init: function() {
this.targets = [];
if (!Ext.supports.Touch) {
Ext.apply(this, {
startEvent: 'mousedown',
moveEvent... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.ArrayReader
* @extends Ext.data.DataReader
* Data reader class to create an Array of Ext.data.Record objects from an Array.
* Each element of that Arra... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.SortTypes
* @singleton
* Defines the default sorting (casting?) comparison functions used when sorting data.
*/
/**
* @ Ext.data.SortTypes类
* @... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.JsonReader
* @extends Ext.data.DataReader
* Data reader class to create an Array of Ext.data.Record objects from a JSON response
* based on mappings in... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.HttpProxy
* An implementation of {@link Ext.data.DataProxy} that reads a data object from an {@link Ext.data.Connection} object
* configured to reference... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.XmlReader
* @extends Ext.data.DataReader
* Data reader class to create an Array of {@link Ext.data.Record} objects from an XML document
* based on map... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.Store
* @extends Ext.util.Observable
* The Store class encapsulates a client side cache of {@link Ext.data.Record} objects which provide input data
* f... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
Ext.data.Field = function(config){
if(typeof config == "string"){
config = {name: config};
}
Ext.apply(this, config);
if(!this.type){
thi... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.MemoryProxy
* An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor
* to the Reader when its load method is ca... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.JsonStore
* @extends Ext.data.Store
* Small helper class to make creating Stores for JSON data easier. <br/>
* Ext.data.JsonStore类,继承Ext.data.Store.一小帮... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.Tree
* @extends Ext.util.Observable
* Represents a tree data structure and bubbles all the events for its nodes. The nodes
* in the tree have most stan... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.Connection
* @extends Ext.util.Observable
* 该类压缩了一个页面到当前域的连接,以响应(来自配置文件中的url或请求时指定的url)请求
* 通过该类产生的请求都是异步的,并且会立刻返回,紧根其后的request调用将得不到数据
* 可以使用在reques... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.DataProxy
* This class is an abstract base class for implementations which provide retrieval of
* unformatted data objects.<br>
* <p>
* DataProxy imp... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.ScriptTagProxy
* An implementation of Ext.data.DataProxy that reads a data object from a URL which may be in a domain
* other than the originating domain... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
// Base class for reading structured data from a data source. This class is intended to be
// extended (see ArrayReader, JsonReader and XmlReader) and should not be created direct... | JavaScript |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/**
* @class Ext.data.SimpleStore
* @extends Ext.data.Store
* Small helper class to make creating Stores from Array data easier.
* @cfg {Number} id The array index of the record... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.