Last active
December 25, 2015 12:29
-
-
Save xenophy/6976832 to your computer and use it in GitHub Desktop.
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('MyApp.form.Panel', { | |
extend: 'Ext.form.Panel', | |
initComponent: function() { | |
var me = this; | |
// スーパークラスメソッドコール | |
me.callParent(arguments); | |
Ext.applyIf(me.getForm(), { | |
getValue: function(key) { | |
return this.getValues()[key]; | |
} | |
}); | |
} | |
}); | |
// うにょうにょして、実際使うときは | |
var fp = // フォームパネル取得処理 | |
fp.getValue('key'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment