Sfoglia il codice sorgente

Disable Default Aggrid Column Fit

This is not desirable if you have a table with a big amount of columns.
Tao 1 anno fa
parent
commit
2e4e35a9e8
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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) {