Panel.js 548 B

1234567891011121314151617181920
  1. Ext.define('saas.override.grid.Panel', {
  2. override: 'Ext.grid.Panel',
  3. sortableColumns: false,
  4. enableColumnHide: false,
  5. emptyText: '<div class="x-grid-empty-img"></div><div class="x-grid-empty-text">暂无数据</div>',
  6. /**
  7. * 是否可以编辑
  8. *
  9. * @param {boolean} editable
  10. */
  11. setEditable: function (editable) {
  12. var me = this, plugin = me.editingPlugin;
  13. me.editable = editable;
  14. if (plugin) {
  15. plugin[editable ? 'enable' : 'disable'].call(plugin);
  16. }
  17. }
  18. });