2016-04-21 3 views
1

EXT JSグリッドで、xtype:actioncolumnの列に対して、列ヘッダーが表示/非表示列リストに表示されません。 actioncolumnカラムのデフォルトでは、 'Actions'として表示されます。 actioncolumnカラムの表示/非表示のカラムリストの実際のカラムヘッダを上書きできますか? Imageは、Senchaの例のスクリーンショットを示しています。actioncolumn xtype列ヘッダーが表示されています。列の非表示/表示リストのアクション

enter image description here

答えて

2

あなたは列のラベルを変更したい場合、あなたはactioncolumn

例えばmenuTextと呼ばれる設定を使用する必要があります(https://fiddle.sencha.com/#fiddle/1944

 { 
      xtype:'actioncolumn', 
      width:50, 
      menuText: 'My Actions', 
      items: [{ 
       icon: 'extjs-build/examples/shared/icons/fam/cog_edit.png', // Use a URL in the icon config 
       tooltip: 'Edit', 
       handler: function(grid, rowIndex, colIndex) { 
        var rec = grid.getStore().getAt(rowIndex); 
        alert("Edit " + rec.get('firstname')); 
       } 
      },{ 
       icon: 'extjs-build/examples/restful/images/delete.png', 
       tooltip: 'Delete', 
       handler: function(grid, rowIndex, colIndex) { 
        var rec = grid.getStore().getAt(rowIndex); 
        alert("Terminate " + rec.get('firstname')); 
       } 
      }] 
     } 
関連する問題