This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//nodejs v0.4.13-pre | |
//express 2.4.7 | |
var express = require('express'), | |
server = express.createServer( | |
express.bodyParser(), | |
express.methodOverride() | |
); | |
server.post('/', function(req, res) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.override(Ext.LoadMask, { | |
onBeforeLoad: function() { | |
var me = this; | |
if (!me.disabled) { | |
me.loading = true; | |
} | |
me.callOverridden(arguments); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Mitchell Simoens ([email protected]) | |
* | |
* This override is to make {@link Ext.form.field.ComboBox} not disrupt | |
* existing filters on a {@link Ext.data.Store}. | |
* | |
* This override only affects the {@link Ext.form.field.ComboBox} if | |
* queryMode = 'local' and triggerAction = 'query'. | |
* | |
* Ext JS versions tested: 4.0.7, 4.1.0 PR1, SDK repo (2011-11-25) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('Test.field.Countries', { | |
extend : 'Ext.form.field.ComboBox', | |
alias : 'widget.field-countries', | |
fieldLabel : 'Countries', | |
queryMode : 'local', | |
displayField : 'name', | |
valueField : 'abbr', | |
store : { | |
xclass : 'Ext.data.Store', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* You were close except since you had override, it was going to try and override all Ext.plugin.PullRefresh. | |
* | |
* Here is an example at extending it, you are making a new class. So instead of creating Ext.plugin.PullRefresh, you would use mobuy.plugin.PullRefresh. | |
* | |
* You would put this in the app/plugin/PullRefresh.js file and then you can require this class and it will be loaded. | |
*/ | |
Ext.define('mobuy.plugin.PullRefresh', { | |
extend : 'Ext.plugin.PullRefresh', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('foo', { | |
.... | |
a : { | |
one : function() {}, | |
two : function() {} | |
}, | |
b : { | |
three : function() {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Ext.Container({ | |
fullscreen : true, | |
layout : { | |
type : 'card', | |
animation : { | |
type : 'slide' | |
} | |
}, | |
items : [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cnt = new Ext.Container({ | |
fullscreen : true, | |
layout : 'card', | |
items : [ | |
{ | |
xtype : 'toolbar', | |
docked : 'top', | |
items : [ | |
{ | |
text : 'Test (int)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This must use Sencha Touch 2.1.0 beta 3 | |
* This shows how similar using components is in DataView and List | |
*/ | |
Ext.define('MyDataItem', { | |
extend : 'Ext.dataview.component.DataItem', | |
xtype : 'mydataitem', | |
//<debug> |
OlderNewer