UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

17 lines (12 loc) 433 B
Ext.define('KitchenSink.view.binding.DynamicController', { extend: 'Ext.app.ViewController', alias: 'controller.binding-dynamic', contentCount: 0, titleCount: 0, onChangeTitleClick: function() { this.getViewModel().set('title', 'New Title ' + ++this.titleCount); }, onChangeContentClick: function() { this.getViewModel().set('content', 'New Content ' + ++this.contentCount); } });