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
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.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
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.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('MyApp.view.Foo', { | |
extend : 'Ext.Component', | |
xtype : 'myapp-foo', | |
requires : [ | |
'MyApp.view.FooController' | |
], | |
controller : 'foocontroller', |
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
config : { | |
routes : { | |
'record:id' : function(id) { | |
console.log('record', id); | |
}, | |
'comment:id' : function(id) { | |
console.log('comment', id); | |
}, | |
'tab:id' : function(id) { | |
console.log('tab', id); |
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
on theSplit(theString, theDelimiter) | |
-- save delimiters to restore old settings | |
set oldDelimiters to AppleScript's text item delimiters | |
-- set delimiters to delimiter to be used | |
set AppleScript's text item delimiters to theDelimiter | |
-- create the array | |
set theArray to every text item of theString | |
-- restore the old setting | |
set AppleScript's text item delimiters to oldDelimiters | |
-- return the result |
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
# Things Cmd will touch on a build | |
build/ | |
bootstrap.* |
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('MyApp.view.Grid', { | |
extend : 'Ext.grid.Panel', | |
xtype : 'myapp-grid', | |
//... | |
plugins : [ | |
//Bad! | |
Ext.create('Ext.grid.plugin.CellEditing', { | |
clicksToEdit : 1 |