Skip to content

Instantly share code, notes, and snippets.

@baconpat
Created October 19, 2012 00:03
Show Gist options
  • Select an option

  • Save baconpat/3915497 to your computer and use it in GitHub Desktop.

Select an option

Save baconpat/3915497 to your computer and use it in GitHub Desktop.

Revisions

  1. baconpat created this gist Oct 19, 2012.
    9 changes: 9 additions & 0 deletions MyWidget.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Ext.define('MyApp.widget.MyWidget', {
    extend: 'Ext.Component',
    autoEl: {
    html: "<span class='display'></span>"
    },
    afterRender: function () {
    this.getEl().down(".display").dom.innerText = this.value;
    }
    });