Skip to content

Instantly share code, notes, and snippets.

@baconpat
Created October 19, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baconpat/3915497 to your computer and use it in GitHub Desktop.
Save baconpat/3915497 to your computer and use it in GitHub Desktop.
An example Ext widget for a unit test
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