This file contains 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
/** | |
* Call the "parent" method of the current method. That is the method previously | |
* overridden by derivation or by an override (see {@link Ext#define}). | |
* | |
* Ext.define('My.Base', { | |
* constructor: function (x) { | |
* this.x = x; | |
* }, | |
* | |
* statics: { |
This file contains 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('Ext.ux.AudioPlayer', { | |
extend : 'Ext.Container', | |
xtype : 'audioplayer', | |
config : { | |
url : null, | |
height : 40, | |
layout : { |
This file contains 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 storeData = [ | |
{ flavor : 'Vanilla', id : 0 }, | |
{ flavor : 'Chocolate', id : 1 }, | |
{ flavor : 'Strawberry', id : 2 }, | |
{ flavor : 'Cherry', id : 3 }, | |
{ flavor : 'BerryBlast', id : 4 }, | |
{ flavor : 'Mint Chocolate Chip', id : 5 }, | |
{ flavor : 'Double Chocolate', id : 6 } | |
]; |
This file contains 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('AW.controller.Main', { | |
extend : 'Ext.app.Controller', | |
config : { | |
layout : 'card', | |
tags : undefined, | |
stories : undefined, | |
otherStories : undefined, | |
rawStories : undefined, | |
currentChannel : undefined, |
This file contains 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
p = new Ext.Panel({ | |
renderTo : document.body, | |
itemId : 'mypanel', | |
height : 200, | |
width : 500, | |
frame : true | |
}); | |
t = new Ext.form.field.Text({fieldLabel : 'meh'}); |
This file contains 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
onScroll : function(scroller, X,Y) { | |
if (this.getLoading()) { | |
return; | |
} | |
var element = this.element, | |
cmpWidth = element.getWidth(), | |
innerElWidth = element.down('.x-inner').getWidth(), | |
scrollPct = (X / (innerElWidth - cmpWidth)); |
This file contains 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('Ext.ux.FieldsetCollapser', { | |
extend : 'Ext.Component', | |
alias : 'plugin.fieldsetcollapser', | |
config : { | |
collapsed : false, | |
body : null, | |
indicatorEl : null, | |
initialCollapse : false, | |
bodyHeight : null |
This file contains 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
@media screen and (min-width: 517px) and (min-height: 778px) { | |
body { | |
background-color: #99F; | |
} | |
} | |
@media screen and (min-width: 784px) and (max-height: 1193px) { | |
body { | |
background-color: #F99; |
This file contains 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
@media all and (max-device-width: 800px) { | |
.global-toc .global-toc-featured-story .x-innerhtml { | |
border: 1px solid #F00; | |
} | |
} | |
@media all and (max-device-width: 600px) { | |
.global-toc .global-toc-featured-story .x-innerhtml { | |
border: 1px solid #0F0; | |
} |
This file contains 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
x="a.b.c"; y="d.e"; z="b.c"; echo $x | sed -e "s/${z}/$y/g" |