Created
October 19, 2012 00:03
-
-
Save baconpat/3915497 to your computer and use it in GitHub Desktop.
An example Ext widget for a unit test
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('MyApp.widget.MyWidget', { | |
extend: 'Ext.Component', | |
autoEl: { | |
html: "<span class='display'></span>" | |
}, | |
afterRender: function () { | |
this.getEl().down(".display").dom.innerText = this.value; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment