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('Override.AbstractComponent', { | |
override : 'Ext.AbstractComponent', | |
fullscreen : false, | |
constructor : function() { | |
var me = this, | |
viewport = Ext.Viewport; | |
me.callParent(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
Ext.define('Ux.YouTubePlayer', { | |
extend : 'Ext.Component', | |
xtype : 'youtubeplayer', | |
config : { | |
url : 'http://www.youtube.com/embed/', | |
videoId : null | |
}, | |
getElementConfig : 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
Ext.define('Override.mixin.Observable', { | |
override : 'Ext.mixin.Observable', | |
eventFiringSuspended : false, | |
doFireEvent : function (eventName, args, action, connectedController) { | |
var me = this, | |
ret = true, | |
eventQueue; |
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.Carousel({ | |
fullscreen : true, | |
items : [ | |
{ | |
scroll : 'vertical', | |
html : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rhoncus nunc vel felis pellentesque a vestibulum arcu aliquam. Morbi sit amet lectus a tortor posuere interdum ut id turpis. Praesent tincidunt pellentesque egestas. Nam eget libero turpis. Maecenas quis diam eu diam imperdiet ultricies. Duis nec libero sit amet mi ultrices commodo. Curabitur lorem leo, sagittis eu consequat ac, blandit et leo. Integer non sodales enim. Aliquam ultricies varius risus at vestibulum. Ut molestie, dolor nec aliquam euismod, urna justo cursus purus, a sagittis ante velit eget velit. Aliquam erat volutpat.<br><br>Proin consectetur venenatis vulputate. Suspendisse nisi lacus, porta ut laoreet ut, suscipit ut odio. Vivamus vitae elit nec diam bibendum eleifend. Nulla facilisis velit sit amet enim euismod at condimentum odio porttitor. Nulla cursus ipsum vel nisl laoreet lacinia. Cras sit amet nibh |
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.Viewport.add({ | |
xtype : 'carousel', | |
items : [ | |
{ | |
scrollable : { | |
direction : 'vertical', | |
directionLock : true | |
}, | |
html : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rhoncus nunc vel felis pellentesque a vestibulum arcu aliquam. Morbi sit amet lectus a tortor posuere interdum ut id turpis. Praesent tincidunt pellentesque egestas. Nam eget libero turpis. Maecenas quis diam eu diam imperdiet ultricies. Duis nec libero sit amet mi ultrices commodo. Curabitur lorem leo, sagittis eu consequat ac, blandit et leo. Integer non sodales enim. Aliquam ultricies varius risus at vestibulum. Ut molestie, dolor nec aliquam euismod, urna justo cursus purus, a sagittis ante velit eget velit. Aliquam erat volutpat.<br><br>Proin consectetur venenatis vulputate. Suspendisse nisi lacus, porta ut laoreet ut, suscipit ut odio. Vivamus vitae elit nec diam bibendum eleifend. Nulla facilisis velit sit amet enim euismod at co |
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> |
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
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
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
/** | |
* 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', |