code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
(function () {
if (!Ext.global.Float32Array) {
// Typed Array polyfill
var Float32Array = function (array) {
if (typeof array === 'number') {
this.length = array;
} else if ('length' in array) {
this.length = array.length;
for (... | JavaScript |
/**
* Provides an API for storing data in databases that can be queried using an SQL.
*
* @mixins Ext.device.sqlite.Sencha
*
* @aside guide native_apis
*/
Ext.define('Ext.device.SQLite', {
singleton: true,
requires: [
'Ext.device.Communicator',
'Ext.device.sqlite.Sencha'
],
const... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.communicator.Android', {
extend: 'Ext.device.communicator.Default',
doSend: function(args) {
args.__source = document.location.href;
return window.Sencha.action(JSON.stringify(args));
}
});
| JavaScript |
/**
* @private
*
* This object handles communication between the WebView and Sencha's native shell.
* Currently it has two primary responsibilities:
*
* 1. Maintaining unique string ids for callback functions, together with their scope objects
* 2. Serializing given object data into HTTP GET request parameters
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.orientation.Sencha', {
extend: 'Ext.device.orientation.Abstract',
requires: [
'Ext.device.Communicator'
],
/**
* From the native shell, the callback needs to be invoked infinitely using a timer, ideally 50 times per second.
* The callback ex... | JavaScript |
/**
* Provides the HTML5 implementation for the orientation API.
* @private
*/
Ext.define('Ext.device.orientation.HTML5', {
extend: 'Ext.device.orientation.Abstract',
initialize: function() {
this.onDeviceOrientation = Ext.Function.bind(this.onDeviceOrientation, this);
window.addEventListene... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.orientation.Abstract', {
mixins: ['Ext.mixin.Observable'],
/**
* @event orientationchange
* Fires when the orientation has been changed on this device.
*
* Ext.device.Orientation.on({
* scope: this,
* orientationchange... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.contacts.Sencha', {
extend: 'Ext.device.contacts.Abstract',
getContacts: function(config) {
var includeImages = this.getIncludeImages();
if (typeof config.includeImages != "undefined") {
includeImages = config.includeImages;
}
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.contacts.Abstract', {
mixins: ['Ext.mixin.Observable'],
config: {
/**
* @cfg {Boolean} includeImages
* True to include images when you get the contacts store. Please beware that this can be very slow.
*/
includeImages: false
... | JavaScript |
/**
* Provides access to the native Geolocation API when running on a device. There are three implementations of this API:
*
* - Sencha Packager
* - [PhoneGap](http://docs.phonegap.com/en/1.4.1/phonegap_device_device.md.html)
* - Browser
*
* This class will automatically select the correct implementation dependi... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.push.Sencha', {
extend: 'Ext.device.push.Abstract',
register: function() {
var config = this.callParent(arguments);
Ext.apply(config, {
command: 'PushNotification#Register',
callbacks: {
success: config.success,... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.push.Abstract', {
/**
* @property
* Notification type: alert.
*/
ALERT: 1,
/**
* @property
* Notification type: badge.
*/
BADGE: 2,
/**
* @property
* Notification type: sound.
*/
SOUND: 4,
/**
* @me... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.connection.Sencha', {
extend: 'Ext.device.connection.Abstract',
/**
* @event onlinechange
* Fires when the connection status changes.
* @param {Boolean} online True if you are {@link Ext.device.Connection#isOnline online}
* @param {String} type The... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.connection.PhoneGap', {
extend: 'Ext.device.connection.Abstract',
syncOnline: function() {
var type = navigator.network.connection.type;
this._type = type;
this._online = type != Connection.NONE;
},
getOnline: function() {
this... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.connection.Abstract', {
mixins: ['Ext.mixin.Observable'],
config: {
online: false,
type: null
},
/**
* @property {String} UNKNOWN
* Text label for a connection type.
*/
UNKNOWN: 'Unknown connection',
/**
* @propert... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.connection.Simulator', {
extend: 'Ext.device.connection.Abstract',
getOnline: function() {
this._online = navigator.onLine;
this._type = Ext.device.Connection.UNKNOWN;
return this._online;
}
});
| JavaScript |
/**
* This class provides you with a cross platform way of listening to when the the orientation changes on the
* device your application is running on.
*
* The {@link Ext.device.Orientation#orientationchange orientationchange} event gets passes the `alpha`, `beta` and
* `gamma` values.
*
* You can find more inf... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.geolocation.Sencha', {
extend: 'Ext.device.geolocation.Abstract',
getCurrentPosition: function(config) {
config = this.callParent([config]);
Ext.apply(config, {
command: 'Geolocation#getCurrentPosition',
callbacks: {
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.geolocation.Abstract', {
config: {
/**
* @cfg {Number} maximumAge
* This option indicates that the application is willing to accept cached location information whose age
* is no greater than the specified time in milliseconds. If maximumA... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.geolocation.Simulator', {
extend: 'Ext.device.geolocation.Abstract',
requires: ['Ext.util.Geolocation'],
getCurrentPosition: function(config) {
config = this.callParent([config]);
Ext.apply(config, {
autoUpdate: false,
list... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.notification.Sencha', {
extend: 'Ext.device.notification.Abstract',
requires: ['Ext.device.Communicator'],
show: function() {
var config = this.callParent(arguments);
Ext.device.Communicator.send({
command: 'Notification#show',
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.notification.PhoneGap', {
extend: 'Ext.device.notification.Abstract',
requires: ['Ext.device.Communicator'],
show: function() {
var config = this.callParent(arguments),
buttons = config.buttons,
onShowCallback = function (index) {
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.notification.Abstract', {
/**
* A simple way to show a notification.
*
* Ext.device.Notification.show({
* title: 'Verification',
* message: 'Is your email address is: test@sencha.com',
* buttons: Ext.MessageBox.OKCANCE... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.notification.Simulator', {
extend: 'Ext.device.notification.Abstract',
requires: ['Ext.MessageBox'],
// @private
msg: null,
show: function() {
var config = this.callParent(arguments),
buttons = [],
ln = config.buttons.length,
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.camera.Sencha', {
extend: 'Ext.device.camera.Abstract',
requires: [
'Ext.device.Communicator'
],
capture: function(options) {
var sources = this.source,
destinations = this.destination,
encodings = this.encoding,
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.camera.PhoneGap', {
extend: 'Ext.device.camera.Abstract',
capture: function(args) {
var onSuccess = args.success,
onError = args.failure,
scope = args.scope,
sources = this.source,
destinations = this.destinatio... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.camera.Abstract', {
source: {
library: 0,
camera: 1,
album: 2
},
destination: {
data: 0, // Returns base64-encoded string
file: 1 // Returns file's URI
},
encoding: {
jpeg: 0,
jpg: 0,
png: ... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.camera.Simulator', {
extend: 'Ext.device.camera.Abstract',
config: {
samples: [
{
success: 'http://www.sencha.com/img/sencha-large.png'
}
]
},
constructor: function(config) {
this.initConfig(conf... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.purchases.Sencha', {
requires: [
'Ext.data.Store'
],
/**
* Checks if the current user is able to make payments.
*
* ## Example
*
* Ext.device.Purchases.canMakePayments({
* callback: function(flag) {
* ... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.Communicator', {
requires: [
'Ext.device.communicator.Default',
'Ext.device.communicator.Android'
],
singleton: true,
constructor: function() {
if (Ext.os.is.Android) {
return new Ext.device.communicator.Android();
... | JavaScript |
/**
* Provides a way to send push notifications to a device. Currently only available on iOS.
*
* # Example
*
* Ext.device.Push.register({
* type: Ext.device.Push.ALERT|Ext.device.Push.BADGE|Ext.device.Push.SOUND,
* success: function(token) {
* console.log('# Push notification re... | JavaScript |
/**
* This class is used to check if the current device is currently online or not. It has three different implementations:
*
* - Sencha Packager
* - PhoneGap
* - Simulator
*
* Both the Sencha Packager and PhoneGap implementations will use the native functionality to determine if the current
* device is online.... | JavaScript |
/**
* Provides a cross device way to show notifications. There are three different implementations:
*
* - Sencha Packager
* - PhoneGap
* - Simulator
*
* When this singleton is instantiated, it will automatically use the correct implementation depending on the current device.
*
* Both the Sencha Packager and Ph... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.device.Sencha', {
extend: 'Ext.device.device.Abstract',
constructor: function() {
this.name = device.name;
this.uuid = device.uuid;
this.platform = device.platformName || Ext.os.name;
this.initURL();
},
openURL: function(url) ... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.device.PhoneGap', {
extend: 'Ext.device.device.Abstract',
constructor: function() {
// We can't get the device details until the device is ready, so lets wait.
if (Ext.isReady) {
this.onReady();
} else {
Ext.onReady(this... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.device.Abstract', {
mixins: ['Ext.mixin.Observable'],
/**
* @event schemeupdate
* Event which is fired when your Sencha Native packaged application is opened from another application using a custom URL scheme.
*
* This event will only fire if the ... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.device.Simulator', {
extend: 'Ext.device.device.Abstract'
});
| JavaScript |
/**
* This class allows you to use native APIs to take photos using the device camera.
*
* When this singleton is instantiated, it will automatically select the correct implementation depending on the
* current device:
*
* - Sencha Packager
* - PhoneGap
* - Simulator
*
* Both the Sencha Packager and PhoneGap ... | JavaScript |
/**
* @private
*/
Ext.define('Ext.device.sqlite.Sencha', {
/**
* Returns a {@link Ext.device.SQLite.Database} instance. If the database with specified name does not exist, it will be created.
* If the creationCallback is provided, the database is created with the empty string as its version regardless o... | JavaScript |
/**
* Provides a cross device way to get information about the device your application is running on. There are 3 different implementations:
*
* - Sencha Packager
* - [PhoneGap](http://docs.phonegap.com/en/1.4.1/phonegap_device_device.md.html)
* - Simulator
*
* ## Examples
*
* #### Device Information
*
* Ge... | JavaScript |
/**
*
*
* @mixins Ext.device.purchases.Sencha
*
* @aside guide native_apis
*/
Ext.define('Ext.device.Purchases', {
singleton: true,
requires: [
'Ext.device.Communicator',
'Ext.device.purchases.Sencha'
],
constructor: function() {
return Ext.create('Ext.device.purchases.... | JavaScript |
/**
* This device API allows you to access a users contacts using a {@link Ext.data.Store}. This allows you to search, filter
* and sort through all the contacts using its methods.
*
* To use this API, all you need to do is require this class (`Ext.device.Contacts`) and then use `Ext.device.Contacts.getContacts()`
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.Evented', {
alternateClassName: 'Ext.EventedBase',
mixins: ['Ext.mixin.Observable'],
statics: {
generateSetter: function(nameMap) {
var internalName = nameMap.internal,
applyName = nameMap.apply,
changeEventName = nam... | 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 |
/**
* This plugin adds pull to refresh functionality to the List.
*
* ## Example
*
* @example
* var store = Ext.create('Ext.data.Store', {
* fields: ['name', 'img', 'text'],
* data: [
* {
* name: 'rdougan',
* img: 'http://a0.twimg.com/profil... | JavaScript |
/**
* Adds a Load More button at the bottom of the list. When the user presses this button,
* the next page of data will be loaded into the store and appended to the List.
*
* By specifying `{@link #autoPaging}: true`, an 'infinite scroll' effect can be achieved,
* i.e., the next page of content will load automati... | JavaScript |
/**
* @private
*/
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
* Cont... | JavaScript |
/**
* @private
* Android version of viewport.
*/
Ext.define('Ext.viewport.Android', {
extend: 'Ext.viewport.Default',
constructor: function() {
this.on('orientationchange', 'doFireOrientationChangeEvent', this, { prepend: true });
this.on('orientationchange', 'hideKeyboardIfNeeded', this, { ... | JavaScript |
/**
* @private
* Base class for iOS and Android viewports.
*/
Ext.define('Ext.viewport.Default', {
extend: 'Ext.Container',
xtype: 'viewport',
PORTRAIT: 'portrait',
LANDSCAPE: 'landscape',
requires: [
'Ext.LoadMask',
'Ext.layout.Card',
'Ext.util.InputBlocker'
],
... | JavaScript |
/**
* This class acts as a factory for environment-specific viewport implementations.
*
* Please refer to the {@link Ext.Viewport} documentation about using the global instance.
* @private
*/
Ext.define('Ext.viewport.Viewport', {
requires: [
'Ext.viewport.Ios',
'Ext.viewport.Android',
'... | JavaScript |
/**
* @private
* iOS version of viewport.
*/
Ext.define('Ext.viewport.Ios', {
extend: 'Ext.viewport.Default',
isFullscreen: function() {
return this.isHomeScreen();
},
isHomeScreen: function() {
return window.navigator.standalone === true;
},
constructor: function() {
... | JavaScript |
/**
* @private
* Windows Phone version of Viewport.
*/
Ext.define('Ext.viewport.WindowsPhone', {
requires: [],
alternateClassName: 'Ext.viewport.WP',
extend: 'Ext.viewport.Default',
// so one pixel line is displayed on the right side of the screen. Setting width more than 100% fix the issue
// ... | JavaScript |
/**
* @aside guide forms
* @aside example forms
* @aside example forms-toolbars
*
* A FieldSet is a great way to visually separate elements of a form. It's normally used when you have a form with
* fields that can be divided into groups - for example a customer's billing details in one fieldset and their shipping... | JavaScript |
/**
* The Form panel presents a set of form fields and provides convenient ways to load and save data. Usually a form
* panel just contains the set of fields you want to display, ordered inside the items configuration like this:
*
* @example
* var form = Ext.create('Ext.form.Panel', {
* fullscreen... | JavaScript |
/**
* @private
*/
Ext.define('Ext.ItemCollection', {
extend: 'Ext.util.MixedCollection',
getKey: function(item) {
return item.getItemId();
},
has: function(item) {
return this.map.hasOwnProperty(item.getId());
}
});
| JavaScript |
//<feature logger>
/**
* @class Ext.Logger
* Logs messages to help with debugging.
*
* ## Example
*
* Ext.Logger.deprecate('This method is no longer supported.');
*
* @singleton
*/
(function() {
var Logger = Ext.define('Ext.log.Logger', {
extend: 'Ext.log.Base',
statics: {
defaultPriority... | JavaScript |
//<feature logger>
Ext.define('Ext.log.Base', {
config: {},
constructor: function(config) {
this.initConfig(config);
return this;
}
});
//</feature>
| JavaScript |
//<feature logger>
Ext.define('Ext.log.writer.Writer', {
extend: 'Ext.log.Base',
requires: ['Ext.log.formatter.Formatter'],
config: {
formatter: null,
filters: {}
},
constructor: function() {
this.activeFilters = [];
return this.callParent(arguments);
},
... | JavaScript |
//<feature logger>
Ext.define('Ext.log.writer.Console', {
extend: 'Ext.log.writer.Writer',
config: {
throwOnErrors: true,
throwOnWarnings: false
},
doWrite: function(event) {
var message = event.message,
priority = event.priorityName,
consoleMethod;
... | JavaScript |
//<feature logger>
Ext.define('Ext.log.writer.Remote', {
extend: 'Ext.log.writer.Writer',
requires: [
'Ext.Ajax'
],
config: {
batchSendDelay: 100,
onFailureRetryDelay: 500,
url: ''
},
isSending: false,
sendingTimer: null,
constructor: function() {
... | JavaScript |
//<feature logger>
Ext.define('Ext.log.writer.DocumentTitle', {
extend: 'Ext.log.writer.Writer',
doWrite: function(event) {
var message = event.message;
document.title = message;
}
});
//</feature>
| JavaScript |
//<feature logger>
Ext.define('Ext.log.formatter.Default', {
extend: 'Ext.log.formatter.Formatter',
config: {
messageFormat: "[{priorityName}][{callerDisplayName}] {message}"
},
format: function(event) {
var event = Ext.merge({}, event, {
priorityName: event.priorityNam... | JavaScript |
//<feature logger>
Ext.define('Ext.log.formatter.Identity', {
extend: 'Ext.log.formatter.Default',
config: {
messageFormat: "[{osIdentity}][{browserIdentity}][{timestamp}][{priorityName}][{callerDisplayName}] {message}"
},
format: function(event) {
event.timestamp = Ext.Date.toString()... | JavaScript |
//<feature logger>
Ext.define('Ext.log.formatter.Formatter', {
extend: 'Ext.log.Base',
config: {
messageFormat: "{message}"
},
format: function(event) {
return this.substitute(this.getMessageFormat(), event);
},
substitute: function(template, data) {
var name, value;
... | JavaScript |
//<feature logger>
Ext.define('Ext.log.filter.Filter', {
extend: 'Ext.log.Base',
accept: function(event) {
return true;
}
});
//</feature>
| JavaScript |
//<feature logger>
Ext.define('Ext.log.filter.Priority', {
extend: 'Ext.log.filter.Filter',
config: {
minPriority: 1
},
accept: function(event) {
return event.priority >= this.getMinPriority();
}
});
//</feature>
| JavaScript |
/**
* @aside example pickers
* A general picker class. {@link Ext.picker.Slot}s are used to organize multiple scrollable slots into a single picker. {@link #slots} is
* the only necessary configuration.
*
* The {@link #slots} configuration with a few key values:
*
* - `name`: The name of the slot (will be the ke... | JavaScript |
/**
* A date picker component which shows a Date Picker on the screen. This class extends from {@link Ext.picker.Picker}
* and {@link Ext.Sheet} so it is a popup.
*
* This component has no required configurations.
*
* ## Examples
*
* @example miniphone preview
* var datePicker = Ext.create('Ext.picker.... | JavaScript |
/**
* @private
*
* A general {@link Ext.picker.Picker} slot class. Slots are used to organize multiple scrollable slots into
* a single {@link Ext.picker.Picker}.
*
* {
* name : 'limit_speed',
* title: 'Speed Limit',
* data : [
* {text: '50 KB/s', value: 50},
* ... | JavaScript |
//@require @core
/**
* @private
*/
Ext.define('Ext.event.Dispatcher', {
requires: [
'Ext.event.ListenerStack',
'Ext.event.Controller'
],
statics: {
getInstance: function() {
if (!this.instance) {
this.instance = new this();
}
... | JavaScript |
//@require @core
/**
* @private
*/
Ext.define('Ext.event.Controller', {
isFiring: false,
listenerStack: null,
constructor: function(info) {
this.firingListeners = [];
this.firingArguments = [];
this.setInfo(info);
return this;
},
setInfo: function(info) {
... | JavaScript |
//@require @core
/**
* @private
*/
Ext.define('Ext.event.ListenerStack', {
currentOrder: 'current',
length: 0,
constructor: function() {
this.listeners = {
before: [],
current: [],
after: []
};
this.lateBindingMap = {};
return this;... | JavaScript |
/**
* @private
* @extends Object
* DOM event. This class really extends {@link Ext.event.Event}, but for documentation
* purposes it's members are listed inside {@link Ext.event.Event}.
*/
Ext.define('Ext.event.Dom', {
extend: 'Ext.event.Event',
constructor: function(event) {
var target = event.ta... | JavaScript |
/**
* @private
* Touch event.
*/
Ext.define('Ext.event.Touch', {
extend: 'Ext.event.Dom',
requires: [
'Ext.util.Point'
],
constructor: function(event, info, map, list) {
var touches = [],
touch, i, ln, identifier;
if (info) {
this.set(info);
... | JavaScript |
/**
* A simple event recogniser which knows when you tap.
*
* @private
*/
Ext.define('Ext.event.recognizer.Tap', {
extend: 'Ext.event.recognizer.SingleTouch',
handledEvents: ['tap', 'tapcancel'],
config: {
/**
* @cfg {Number} moveDistance
* The maximimum distance in pixels a ... | JavaScript |
/**
* A event recognizer which knows when you pinch.
*
* @private
*/
Ext.define('Ext.event.recognizer.Pinch', {
extend: 'Ext.event.recognizer.MultiTouch',
requiredTouchesCount: 2,
handledEvents: ['pinchstart', 'pinch', 'pinchend'],
/**
* @member Ext.dom.Element
* @event pinchstart
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.recognizer.Drag', {
extend: 'Ext.event.recognizer.SingleTouch',
isStarted: false,
startPoint: null,
previousPoint: null,
lastPoint: null,
handledEvents: ['dragstart', 'drag', 'dragend'],
config: {
/**
* @cfg {Number} minDistanc... | JavaScript |
/**
* A event recognizer which knows when you tap and hold for more than 1 second.
*
* @private
*/
Ext.define('Ext.event.recognizer.LongPress', {
extend: 'Ext.event.recognizer.SingleTouch',
inheritableStatics: {
DURATION_NOT_ENOUGH: 0x20
},
config: {
minDuration: 1000
},
h... | JavaScript |
/**
* A event recognizer created to recognize vertical swipe movements.
*
* This is disabled by default in Sencha Touch as it has a performance impact when your application
* has vertical scrollers, plus, in most cases it is not very useful.
*
* If you wish to recognize vertical swipe movements in your applicat... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.recognizer.MultiTouch', {
extend: 'Ext.event.recognizer.Touch',
requiredTouchesCount: 2,
isTracking: false,
isStarted: false,
onTouchStart: function(e) {
var requiredTouchesCount = this.requiredTouchesCount,
touches = e.touches,
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.recognizer.Touch', {
extend: 'Ext.event.recognizer.Recognizer',
onTouchStart: Ext.emptyFn,
onTouchMove: Ext.emptyFn,
onTouchEnd: Ext.emptyFn
});
| JavaScript |
/**
* A simple event recognizer which knows when you double tap.
*
* @private
*/
Ext.define('Ext.event.recognizer.DoubleTap', {
extend: 'Ext.event.recognizer.SingleTouch',
inheritableStatics: {
DIFFERENT_TARGET: 0x03
},
config: {
maxDuration: 300
},
handledEvents: ['singl... | JavaScript |
/**
* A base class used for both {@link Ext.event.recognizer.VerticalSwipe} and {@link Ext.event.recognizer.HorizontalSwipe}
* event recognizers.
*
* @private
*/
Ext.define('Ext.event.recognizer.Swipe', {
extend: 'Ext.event.recognizer.SingleTouch',
handledEvents: ['swipe'],
/**
* @member Ext.dom... | JavaScript |
/**
* A base class for all event recognizers in Sencha Touch.
*
* Sencha Touch, by default, includes various different {@link Ext.event.recognizer.Recognizer} subclasses to recognize
* events happening in your application.
*
* ## Default recognizers
*
* * {@link Ext.event.recognizer.Tap}
* * {@link Ext.event.r... | JavaScript |
/**
* A event recognizer created to recognize horizontal swipe movements.
*
* @private
*/
Ext.define('Ext.event.recognizer.HorizontalSwipe', {
extend: 'Ext.event.recognizer.Swipe',
handledEvents: ['swipe'],
onTouchStart: function(e) {
if (this.callParent(arguments) === false) {
ret... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.recognizer.SingleTouch', {
extend: 'Ext.event.recognizer.Touch',
inheritableStatics: {
NOT_SINGLE_TOUCH: 0x01,
TOUCH_MOVED: 0x02
},
onTouchStart: function(e) {
if (e.touches.length > 1) {
return this.fail(this.self.NOT_SING... | JavaScript |
/**
* A simple event recognizer which knows when you rotate.
*
* @private
*/
Ext.define('Ext.event.recognizer.Rotate', {
extend: 'Ext.event.recognizer.MultiTouch',
requiredTouchesCount: 2,
handledEvents: ['rotatestart', 'rotate', 'rotateend'],
/**
* @member Ext.dom.Element
* @event rota... | JavaScript |
// Using @mixins to include all members of Ext.event.Touch
// into here to keep documentation simpler
/**
* @mixins Ext.event.Touch
*
* Just as {@link Ext.dom.Element} wraps around a native DOM node, {@link Ext.event.Event} wraps the browser's native
* event-object normalizing cross-browser differences such as mech... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.ComponentSize', {
extend: 'Ext.event.publisher.Publisher',
requires: [
'Ext.ComponentManager'
],
targetType: 'component',
handledEvents: ['resize', 'innerresize'],
constructor: function() {
this.callParent(arguments);
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.Publisher', {
targetType: '',
idSelectorRegex: /^#([\w\-]+)$/i,
constructor: function() {
var handledEvents = this.handledEvents,
handledEventsMap,
i, ln, event;
handledEventsMap = this.handledEventsMap = {};
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.TouchGesture', {
extend: 'Ext.event.publisher.Dom',
requires: [
'Ext.util.Point',
'Ext.event.Touch',
'Ext.AnimationQueue'
],
handledEvents: ['touchstart', 'touchmove', 'touchend', 'touchcancel'],
mouseToTouchMap: {
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.ComponentDelegation', {
extend: 'Ext.event.publisher.Publisher',
requires: [
'Ext.Component',
'Ext.ComponentQuery'
],
targetType: 'component',
optimizedSelectorRegex: /^#([\w\-]+)((?:[\s]*)>(?:[\s]*)|(?:\s*))([\w\-]+)$/i,
ha... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.ElementPaint', {
extend: 'Ext.event.publisher.Publisher',
requires: [
'Ext.util.PaintMonitor',
'Ext.TaskQueue'
],
targetType: 'element',
handledEvents: ['painted'],
constructor: function() {
this.monitors = {};
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.Dom', {
extend: 'Ext.event.publisher.Publisher',
requires: [
'Ext.env.Browser',
'Ext.Element',
'Ext.event.Dom'
],
targetType: 'element',
idOrClassSelectorRegex: /^([#|\.])([\w\-]+)$/,
handledEvents: ['click', 'focus'... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.ComponentPaint', {
extend: 'Ext.event.publisher.Publisher',
targetType: 'component',
handledEvents: ['erased'],
eventNames: {
painted: 'painted',
erased: 'erased'
},
constructor: function() {
this.callParent(argumen... | JavaScript |
/**
* @private
*/
Ext.define('Ext.event.publisher.ElementSize', {
extend: 'Ext.event.publisher.Publisher',
requires: [
'Ext.util.SizeMonitor'
],
targetType: 'element',
handledEvents: ['resize'],
constructor: function() {
this.monitors = {};
this.callSuper(argument... | JavaScript |
/**
* @private
*/
Ext.define('Ext.fx.animation.Slide', {
extend: 'Ext.fx.animation.Abstract',
alternateClassName: 'Ext.fx.animation.SlideIn',
alias: ['animation.slide', 'animation.slideIn'],
config: {
/**
* @cfg {String} direction The direction of which the slide animates
... | JavaScript |
/**
* @private
*/
Ext.define('Ext.fx.animation.Fade', {
extend: 'Ext.fx.animation.Abstract',
alternateClassName: 'Ext.fx.animation.FadeIn',
alias: ['animation.fade', 'animation.fadeIn'],
config: {
/**
* @cfg {Boolean} out True if you want to make this animation fade out, instead of... | JavaScript |
/**
* @private
*/
Ext.define('Ext.fx.animation.PopOut', {
extend: 'Ext.fx.animation.Pop',
alias: 'animation.popOut',
config: {
// @hide
out: true,
before: {}
}
});
| JavaScript |
/**
* @private
*/
Ext.define('Ext.fx.animation.SlideOut', {
extend: 'Ext.fx.animation.Slide',
alias: ['animation.slideOut'],
config: {
// @hide
out: true
}
});
| JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.