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
| html { | |
| head { | |
| title(title) | |
| } | |
| body { | |
| content() | |
| } | |
| } |
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
| public enum AnimalType { | |
| DOG { | |
| public Animal createAnimal() { | |
| return new Dog(); | |
| } | |
| }, | |
| CAT { | |
| public Animal createAnimal() { | |
| return new Cat(); |
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
| /** | |
| * Add basic filtering to Ext.tree.Panel. Add as a mixin: | |
| * mixins: { | |
| * treeFilter: 'MyApp.lib.TreeFilter' | |
| * } | |
| */ | |
| Ext.define('MyApp.lib.TreeFilter', { | |
| filterByText: function(text) { | |
| this.filterBy(text, 'text'); | |
| }, |