ExtJS4-带有JSON的MVC工具栏绑定到按钮中

问题描述

|| 我有一个MVC应用程序,其中工具栏,选项板和导航面板绑定到视口中。在工具栏中,我需要有一个注销按钮,其名称为会话用户名称。所以我要求服务器。我在工具栏控制器上设置了商店和模型:
Ext.define(\'Cc.controller.Headers\',{
  extend: \'Ext.app.Controller\',stores: [\'Person\'],models: [\'Agent\'],views: [\'Header\'],refs: [
    { ref: \'head\',selector: \'head\' },{ ref: \'logoutButton\',selector: \'head button[action=logout]\'}
  ],init: function() {
    this.control({
      \'head button[action=logout]\': {
          beforerender: this.initlogoutButton
      }
    });
  },initlogoutButton: function(a){
    this.getPersonStore().load();
    var store = this.getPersonStore().each(),button = this.getlogoutButton();
     **//how to bind data to the button ?**
  }
});
    

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)