@cdmx/wappler_ag_grid 0.9.7 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -346,6 +346,9 @@ Specify the tooltip text for Button 10.
346
346
  - This action allows you to pin one or more columns to the left side of the grid.
347
347
  - It is useful when you want to freeze specific columns in place for easy reference, even as you scroll horizontally.
348
348
 
349
+ **Hide Columns**
350
+ - The "Hide Columns" feature allows you to selectively hide one or more columns.
351
+
349
352
  **Import File Data**
350
353
  - The "Import File Data" action allows to import data from CSV and XLSX files into the AG Grid. This action simplifies the process of populating the grid with external data sources.
351
354
  - Key Features:
@@ -1895,6 +1895,26 @@
1895
1895
  }
1896
1896
  ]
1897
1897
  },
1898
+ {
1899
+ addTitle: 'hideColumnsInGrid',
1900
+ title: 'Hide Columns',
1901
+ name: 'hideColumns',
1902
+ icon: 'fa fa-lg fa-eye-slash',
1903
+ state: 'opened',
1904
+ help: 'Hide Columns',
1905
+ properties: [
1906
+ {
1907
+ group: 'Properties',
1908
+ variables: [
1909
+ {
1910
+ name: '1', optionName: '1', title: 'Column Name', type: 'text',
1911
+ dataBindings: true, defaultValue: '', required: true,
1912
+ help: 'Hide Columns'
1913
+ }
1914
+ ]
1915
+ }
1916
+ ]
1917
+ },
1898
1918
  {
1899
1919
  addTitle: 'importFileData',
1900
1920
  title: 'Import File Data',
package/dmx-ag-grid.js CHANGED
@@ -198,6 +198,10 @@ dmx.Component('ag-grid', {
198
198
  pinColumns: function (fieldId) {
199
199
  pinColumnToLeft(fieldId);
200
200
  },
201
+ hideColumns: function (fieldId) {
202
+ console.log(fieldId)
203
+ hideColumn(fieldId);
204
+ },
201
205
  importFileData: async function (fieldId) {
202
206
  await this.parseFileData(fieldId);
203
207
  },
@@ -993,7 +997,7 @@ dmx.Component('ag-grid', {
993
997
  headerCheckboxSelectionFilteredOnly: false,
994
998
  headerName: '',
995
999
  colId: 'checkboxColumn',
996
- field: 'id',
1000
+ field: null,
997
1001
  filter: '',
998
1002
  checkboxSelection: true,
999
1003
  showDisabledCheckboxes: true,
@@ -1182,6 +1186,9 @@ dmx.Component('ag-grid', {
1182
1186
  const gridConfig = {
1183
1187
  onGridReady: function (params) {
1184
1188
  const columnApi = params.columnApi;
1189
+ hideColumn = (fieldToHide) => {
1190
+ columnApi.setColumnsVisible([fieldToHide], false);
1191
+ }
1185
1192
  pinColumnToLeft = (fieldToPin) => {
1186
1193
  const columnState = columnApi.getColumnState();
1187
1194
  const columnIndex = columnState.findIndex(column => column.colId === fieldToPin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",