瀏覽代碼

Disable Default Aggrid Column Fit

This is not desirable if you have a table with a big amount of columns.
Tao 1 年之前
父節點
當前提交
2e4e35a9e8
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      nicegui/elements/aggrid.js

+ 1 - 2
nicegui/elements/aggrid.js

@@ -7,8 +7,7 @@ export default {
     update_grid() {
       this.$el.textContent = "";
       this.gridOptions = {
-        ...this.options,
-        onGridReady: (params) => params.api.sizeColumnsToFit(),
+        ...this.options
       };
       for (const column of this.html_columns) {
         if (this.gridOptions.columnDefs[column].cellRenderer === undefined) {